ruled 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 095c5141a8875a69f30aade5b1ea74207d3efe89
4
- data.tar.gz: fa18f7152e66e66bce34acc26be6a344b21e960c
3
+ metadata.gz: 9add36af60d3cbc46b7e60c4dab7897ddda6c0dd
4
+ data.tar.gz: 606bc0de1a99cf42adc95c6b68416c3672b627ba
5
5
  SHA512:
6
- metadata.gz: 1863057a79794376c20377c666d3a9ab5c6bb63e9e463ac64584e4e5f3a7c5c51d90043e0a5cbf2787659cce01a728f24fa78d0c6694b0fa61d52f3bcf31b592
7
- data.tar.gz: 4aa432afc2c402a86a2c276b39766215fc380e98dd2fa515d0fd37f577fd3df8428948d3a1e11a4debdd1606135592575dc04b413e09d9638e4b4cdc1d12a53f
6
+ metadata.gz: f5465e6b8ebf5bea61358b2ac42151ef6bcc87658fdb9f23270229a7bfaeba89e774ada2eada42e2b8816db951166fe294f864619b561068e5b1be31203325b9
7
+ data.tar.gz: fb9fb499f1aec80fbdec0b0dff8f170cd2406f7be7a0a3ba4047836a870dcc1964f54e045661f146b6793455878353813da0ddcb3273d13ed419c6d2f6119ace
@@ -1,13 +1,17 @@
1
- module Ruled
2
- def self.included(base) # :nodoc:
3
- base.extend ClassMethods
4
- end
1
+ #require 'ruled/core_ext'
2
+ require 'ruled/acts_as_ruled'
5
3
 
6
- module ClassMethods
7
- def acts_as_ruled(options={})
8
- options[:max_records]
9
-
10
- puts self.class
11
- end
12
- end
4
+ module Ruled
5
+ # def self.included(base) # :nodoc:
6
+ # base.extend ClassMethods
7
+ # end
8
+ #
9
+ # module ClassMethods
10
+ # def acts_as_ruled(options={})
11
+ # options[:max_records]
12
+ #
13
+ # puts self.class
14
+ # end
15
+ # end
13
16
  end
17
+
@@ -0,0 +1,16 @@
1
+ module Ruled
2
+ module ActsAsRuled
3
+ extend ActiveSupport::Concern
4
+
5
+ included do
6
+ end
7
+
8
+ module ClassMethods
9
+ def acts_as_ruled(options = {})
10
+ # your code will go here
11
+ end
12
+ end
13
+ end
14
+ end
15
+
16
+ ActiveRecord::Base.send :include, Ruled::ActsAsRuled
@@ -1,3 +1,3 @@
1
1
  module Ruled
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class ActsAsRuled < ActiveSupport::TestCase
4
+ end
@@ -5,21 +5,22 @@
5
5
  # gem 'sqlite3'
6
6
  #
7
7
  default: &default
8
- adapter: sqlite3
8
+ adapter: mysql2
9
9
  pool: 5
10
10
  timeout: 5000
11
+ host: localhost
11
12
 
12
13
  development:
13
14
  <<: *default
14
- database: db/development.sqlite3
15
+ database: ringley_hr_production
15
16
 
16
17
  # Warning: The database defined as "test" will be erased and
17
18
  # re-generated from your development database when you run "rake".
18
19
  # Do not set this db to the same as development or production.
19
20
  test:
20
21
  <<: *default
21
- database: db/test.sqlite3
22
+ database: ringley_hr_production
22
23
 
23
24
  production:
24
25
  <<: *default
25
- database: db/production.sqlite3
26
+ database: ringley_hr_production
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruled
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Eremeev aka azazelo
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.4
19
+ version: 4.2.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.4
26
+ version: 4.2.1
27
27
  description: make models limited.
28
28
  email:
29
29
  - andrey.eremeyev@gmail.com
@@ -35,9 +35,10 @@ files:
35
35
  - README.rdoc
36
36
  - Rakefile
37
37
  - lib/ruled.rb
38
+ - lib/ruled/acts_as_ruled.rb
38
39
  - lib/ruled/version.rb
39
40
  - lib/tasks/ruled_tasks.rake
40
- - test/act_methods_test.rb
41
+ - test/acts_as_ruled_test.rb
41
42
  - test/dummy/README.rdoc
42
43
  - test/dummy/Rakefile
43
44
  - test/dummy/app/assets/javascripts/application.js
@@ -100,7 +101,7 @@ signing_key:
100
101
  specification_version: 4
101
102
  summary: make models limited.
102
103
  test_files:
103
- - test/act_methods_test.rb
104
+ - test/acts_as_ruled_test.rb
104
105
  - test/dummy/app/assets/javascripts/application.js
105
106
  - test/dummy/app/assets/stylesheets/application.css
106
107
  - test/dummy/app/controllers/application_controller.rb
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class ActMethodsTest < ActiveSupport::TestCase
4
- def test_to_squawk_prepends_the_word_squawk
5
- assert_equal "squawk! Hello World", "Hello World".to_squawk
6
- end
7
- end