diff --git a/javascript/Component.ts b/javascript/Component.ts index 0600235..1eb78fc 100644 --- a/javascript/Component.ts +++ b/javascript/Component.ts @@ -23,7 +23,7 @@ export default class Component { { channel: `motion:${this.generateTopic()}`, // TODO: - version: '0.1.0', // import version + version: '0.2.0', // import version state: this.element.getAttribute(this.client.stateAttribute), }, { diff --git a/package.json b/package.json index 7fccf42..fd1d297 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@awcrotwell/motion", - "version": "0.1.16", + "version": "0.2.0", "description": "Motion allows you to build reactive, real-time frontend UI components in your Amber application using pure Crystal that are reusable, testable & encapsulated. For brevity, we will call them MotionComponents.", "main": "dist/index.js", "types": "index.d.ts", diff --git a/shard.yml b/shard.yml index f8000ac..9911972 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: motion -version: 0.1.0 +version: 0.2.0 # description: | # Short description of view_component diff --git a/spec/motion/channel_spec.cr b/spec/motion/channel_spec.cr index a651eca..0656583 100644 --- a/spec/motion/channel_spec.cr +++ b/spec/motion/channel_spec.cr @@ -41,7 +41,7 @@ describe Motion::Channel do "data" => {} of String => String, "identifier" => { "channel" => "motion:6968", - "version" => "0.1.0", + "version" => Motion::Version.to_s, "state" => "eyJtYXBfbW90aW9uIjpmYWxzZSwibW90aW9uX2hpdCI6ZmFsc2V9AE1vdGlvblJlbmRlcg==", }, }, @@ -58,7 +58,7 @@ describe Motion::Channel do "topic": "motion:69689", "identifier": { "state": "eyJtb3Rpb25fY29tcG9uZW50Ijp0cnVlLCJjb3VudCI6MH0AVGlja2VyQ29tcG9uZW50", # TickerComponent - "version": "0.1.0", + "version": Motion::Version.to_s, }, } diff --git a/spec/support/json_fixtures.cr b/spec/support/json_fixtures.cr index 2bfd780..be2a5c4 100644 --- a/spec/support/json_fixtures.cr +++ b/spec/support/json_fixtures.cr @@ -3,7 +3,7 @@ MESSAGE_JOIN = JSON.parse({ "topic" => "motion:6968", "identifier" => { "channel" => "motion:6968", - "version" => "0.1.0", + "version" => Motion::Version.to_s, "state" => "eyJtYXBfbW90aW9uIjpmYWxzZSwibW90aW9uX2hpdCI6ZmFsc2V9AE1vdGlvblJlbmRlcg==", }, }.to_json) @@ -16,7 +16,7 @@ MESSAGE_NEW = JSON.parse({ "command" => "process_motion", "identifier" => { "channel" => "motion:6968", - "version" => "0.1.0", + "version" => Motion::Version.to_s, "state" => "eyJtYXBfbW90aW9uIjpmYWxzZSwibW90aW9uX2hpdCI6ZmFsc2V9AE1vdGlvblJlbmRlcg==", }, "data" => { diff --git a/src/motion/version.cr b/src/motion/version.cr index 38e744e..41c7c96 100644 --- a/src/motion/version.cr +++ b/src/motion/version.cr @@ -1,7 +1,7 @@ module Motion # :nodoc: module Version - VERSION = "0.1.0" + VERSION = "0.2.0" def self.to_s VERSION