acts_as_integer_infinitable 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2
+
3
+ one:
4
+ funds: 1
5
+
6
+ two:
7
+ funds: 1
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class PersonTest < ActiveSupport::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_integer_infinitable
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
  - Pablo González Alba
@@ -38,14 +38,16 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: Allows an integer to have an Infinity value
41
+ description: |2
42
+ Use an integer field with Infinity.
43
+ Use that field as normal, increment, decrement, compare, etc. with the
44
+ expected results.
42
45
  email:
43
46
  - pablo.gonzalez.alba@gmail.com
44
47
  executables: []
45
48
  extensions: []
46
49
  extra_rdoc_files: []
47
50
  files:
48
- - MIT-LICENSE
49
51
  - README.rdoc
50
52
  - Rakefile
51
53
  - lib/acts_as_integer_infinitable.rb
@@ -57,7 +59,8 @@ files:
57
59
  - test/dummy/app/assets/stylesheets/application.css
58
60
  - test/dummy/app/controllers/application_controller.rb
59
61
  - test/dummy/app/helpers/application_helper.rb
60
- - test/dummy/app/models/subscription.rb
62
+ - test/dummy/app/models/library_subscription.rb
63
+ - test/dummy/app/models/person.rb
61
64
  - test/dummy/app/models/tireless_warrior.rb
62
65
  - test/dummy/app/views/layouts/application.html.erb
63
66
  - test/dummy/bin/bundle
@@ -85,6 +88,9 @@ files:
85
88
  - test/dummy/db/development.sqlite3
86
89
  - test/dummy/db/migrate/20150621232010_create_subscriptions.rb
87
90
  - test/dummy/db/migrate/20150622001416_create_tireless_warriors.rb
91
+ - test/dummy/db/migrate/20150622035909_create_people.rb
92
+ - test/dummy/db/migrate/20150622044418_rename_subscription_to_library_subscription.rb
93
+ - test/dummy/db/migrate/20150622044503_rename_duration_to_available_books.rb
88
94
  - test/dummy/db/schema.rb
89
95
  - test/dummy/db/test.sqlite3
90
96
  - test/dummy/log/development.log
@@ -93,8 +99,10 @@ files:
93
99
  - test/dummy/public/422.html
94
100
  - test/dummy/public/500.html
95
101
  - test/dummy/public/favicon.ico
102
+ - test/dummy/test/fixtures/people.yml
96
103
  - test/dummy/test/fixtures/subscriptions.yml
97
104
  - test/dummy/test/fixtures/tireless_warriors.yml
105
+ - test/dummy/test/models/person_test.rb
98
106
  - test/dummy/test/models/subscription_test.rb
99
107
  - test/dummy/test/models/tireless_warrior_test.rb
100
108
  - test/test_helper.rb
@@ -144,15 +152,20 @@ test_files:
144
152
  - test/dummy/config/boot.rb
145
153
  - test/dummy/config/environment.rb
146
154
  - test/dummy/README.rdoc
155
+ - test/dummy/test/fixtures/people.yml
147
156
  - test/dummy/test/fixtures/tireless_warriors.yml
148
157
  - test/dummy/test/fixtures/subscriptions.yml
158
+ - test/dummy/test/models/person_test.rb
149
159
  - test/dummy/test/models/tireless_warrior_test.rb
150
160
  - test/dummy/test/models/subscription_test.rb
151
161
  - test/dummy/log/development.log
152
162
  - test/dummy/log/test.log
153
163
  - test/dummy/Rakefile
154
164
  - test/dummy/db/migrate/20150622001416_create_tireless_warriors.rb
165
+ - test/dummy/db/migrate/20150622044418_rename_subscription_to_library_subscription.rb
166
+ - test/dummy/db/migrate/20150622044503_rename_duration_to_available_books.rb
155
167
  - test/dummy/db/migrate/20150621232010_create_subscriptions.rb
168
+ - test/dummy/db/migrate/20150622035909_create_people.rb
156
169
  - test/dummy/db/development.sqlite3
157
170
  - test/dummy/db/test.sqlite3
158
171
  - test/dummy/db/schema.rb
@@ -168,6 +181,7 @@ test_files:
168
181
  - test/dummy/app/controllers/application_controller.rb
169
182
  - test/dummy/app/assets/javascripts/application.js
170
183
  - test/dummy/app/assets/stylesheets/application.css
171
- - test/dummy/app/models/subscription.rb
184
+ - test/dummy/app/models/library_subscription.rb
172
185
  - test/dummy/app/models/tireless_warrior.rb
186
+ - test/dummy/app/models/person.rb
173
187
  - test/dummy/app/views/layouts/application.html.erb
data/MIT-LICENSE DELETED
@@ -1,20 +0,0 @@
1
- Copyright 2015 Pablo González Alba
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,3 +0,0 @@
1
- class Subscription < ActiveRecord::Base
2
- acts_as_integer_infinitable fields: [:duration]
3
- end