cubism 0.1.0.pre1 → 0.1.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe95381d8e51d520357a7fa08fe84d8107739b039b1f2f11846decb30b63afae
4
- data.tar.gz: 2a4cfb19b44eb395be36c9fafd340c967d51b91690b4ebfbf11321f23a6162e8
3
+ metadata.gz: 285d3d9bb85b4e424646223cfca5b0e8b9ee1bc3d7140a51ba951fc7b67237cd
4
+ data.tar.gz: 70579c946d1c0bb5d2e5176355ac953c887368d51f8568abced88efbf5c7fd71
5
5
  SHA512:
6
- metadata.gz: 335f728fbe45554a741baee7cd4e717e5b4807cdc1ee7506fac3f9273e6f0f69f416192c7b7fe69ba6202a4de573be342b19b9d60a132372c58cdb33a8af75a6
7
- data.tar.gz: b3e49b66ffa6f6348365436be31714953ef56f95187a5db49cc5afdc71ab4b8f6d28d08423a02fa9ee3e351d539d4f7b5a1420c170aafba20b507d403f0232b8
6
+ metadata.gz: fec2a6f41b350167bf2e0349cad1b43cd535ee280bcd4b9102a9976890fb26e6839549d8bec301a60074eca6d6df0c541846a5ee8f173e010cfda6030267869b
7
+ data.tar.gz: 24e7ab307ad8abc9528b42016bd57e4e05000e21beddb97698015a4d0c727504babb8cab958d99952a161adb536e32aa0760b364b9e58a585c422ce83c449df5
data/README.md CHANGED
@@ -95,8 +95,7 @@ Below are a set of instructions that may help you get a local development enviro
95
95
 
96
96
  ```sh
97
97
  # Get the gem/npm package source locally
98
- git clone cubism
99
- cd cubism/javascript
98
+ git clone https://github.com/julianrubisch/cubism
100
99
  yarn install # install all of the npm package's dependencies
101
100
  yarn link # set the local machine's cubism npm package's lookup to this local path
102
101
 
@@ -125,7 +124,7 @@ yarn install --force
125
124
  2. `git commit -m "Bump version to x.x.x"`
126
125
  3. Run `bundle exec rake build`
127
126
  4. Run `bundle exec rake release`
128
- 5. `cd javascript && npm publish --access public`
127
+ 5. Run `npm publish --access public`
129
128
 
130
129
  ## License
131
130
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,7 +1,8 @@
1
1
  class Cubism::Base
2
2
  include ActiveModel::Model
3
+ include Kredis::Attributes
3
4
  include Cubism::Presence
4
- include GlobalID::Identifiable
5
+ include GlobalID::Identification
5
6
 
6
7
  def self.find(id)
7
8
  new if id == "cubism-#{self.class.name.underscore}"
@@ -1,3 +1,13 @@
1
1
  class Cubism::Base
2
- include Cubism::Presence
2
+ include ActiveModel::Model
3
+ include Cubism::Presence
4
+ include GlobalID::Identifiable
5
+
6
+ def self.find(id)
7
+ new if id == "cubism-#{self.class.name.underscore}"
8
+ end
9
+
10
+ def id
11
+ "cubism-#{self.class.name.underscore}"
12
+ end
3
13
  end
@@ -1,3 +1,3 @@
1
1
  module Cubism
2
- VERSION = "0.1.0.pre1"
2
+ VERSION = "0.1.0.pre2"
3
3
  end
@@ -1,3 +1,3 @@
1
1
  module Cubism
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.0.pre1"
3
3
  end
data/lib/cubism.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require "kredis"
2
+
1
3
  require "cubism/version"
2
4
  require "cubism/engine"
3
5
 
data/lib/cubism.rb~ CHANGED
@@ -2,5 +2,5 @@ require "cubism/version"
2
2
  require "cubism/engine"
3
3
 
4
4
  module Cubism
5
- # Your code goes here...
5
+ mattr_accessor :user_class, instance_writer: false, instance_reader: false
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cubism
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre1
4
+ version: 0.1.0.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Rubisch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-14 00:00:00.000000000 Z
11
+ date: 2021-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails