acts_as_label 1.1.6 → 1.1.7
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 +7 -0
- data/Gemfile.lock +98 -0
- data/acts_as_label.gemspec +1 -0
- data/lib/acts_as_label/base.rb +1 -1
- data/lib/acts_as_label/version.rb +1 -1
- metadata +65 -51
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 78062030fb8e418d97514d0abd3d0451ebc4294d
|
|
4
|
+
data.tar.gz: dc9828680e6e421741add6f04687ecf560cb35d4
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 76f42c4c9952871456ed363384f36b7a6efd7a1b9062e9030f5ecf2ab3d6bcf51f5d2f3fb2370754a6e03d28939f218d51bca85da165fc4139e60c5d53db1e13
|
|
7
|
+
data.tar.gz: 87aea691c1271eeadc33e015ee8b6e0a7f76aa1e9b1e34530eefa8025d6c221128088dba0560d41b68dee652cae1991d1c0aaa53801939b9b66cfbd0a725c7b4
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
acts_as_label (1.1.6)
|
|
5
|
+
rails (>= 3.0.0)
|
|
6
|
+
|
|
7
|
+
GEM
|
|
8
|
+
remote: http://rubygems.org/
|
|
9
|
+
specs:
|
|
10
|
+
actionmailer (4.0.0)
|
|
11
|
+
actionpack (= 4.0.0)
|
|
12
|
+
mail (~> 2.5.3)
|
|
13
|
+
actionpack (4.0.0)
|
|
14
|
+
activesupport (= 4.0.0)
|
|
15
|
+
builder (~> 3.1.0)
|
|
16
|
+
erubis (~> 2.7.0)
|
|
17
|
+
rack (~> 1.5.2)
|
|
18
|
+
rack-test (~> 0.6.2)
|
|
19
|
+
activemodel (4.0.0)
|
|
20
|
+
activesupport (= 4.0.0)
|
|
21
|
+
builder (~> 3.1.0)
|
|
22
|
+
activerecord (4.0.0)
|
|
23
|
+
activemodel (= 4.0.0)
|
|
24
|
+
activerecord-deprecated_finders (~> 1.0.2)
|
|
25
|
+
activesupport (= 4.0.0)
|
|
26
|
+
arel (~> 4.0.0)
|
|
27
|
+
activerecord-deprecated_finders (1.0.3)
|
|
28
|
+
activesupport (4.0.0)
|
|
29
|
+
i18n (~> 0.6, >= 0.6.4)
|
|
30
|
+
minitest (~> 4.2)
|
|
31
|
+
multi_json (~> 1.3)
|
|
32
|
+
thread_safe (~> 0.1)
|
|
33
|
+
tzinfo (~> 0.3.37)
|
|
34
|
+
arel (4.0.0)
|
|
35
|
+
atomic (1.1.13)
|
|
36
|
+
builder (3.1.4)
|
|
37
|
+
diff-lcs (1.2.4)
|
|
38
|
+
erubis (2.7.0)
|
|
39
|
+
hike (1.2.3)
|
|
40
|
+
i18n (0.6.5)
|
|
41
|
+
mail (2.5.4)
|
|
42
|
+
mime-types (~> 1.16)
|
|
43
|
+
treetop (~> 1.4.8)
|
|
44
|
+
mime-types (1.24)
|
|
45
|
+
minitest (4.7.5)
|
|
46
|
+
multi_json (1.7.9)
|
|
47
|
+
polyglot (0.3.3)
|
|
48
|
+
rack (1.5.2)
|
|
49
|
+
rack-test (0.6.2)
|
|
50
|
+
rack (>= 1.0)
|
|
51
|
+
rails (4.0.0)
|
|
52
|
+
actionmailer (= 4.0.0)
|
|
53
|
+
actionpack (= 4.0.0)
|
|
54
|
+
activerecord (= 4.0.0)
|
|
55
|
+
activesupport (= 4.0.0)
|
|
56
|
+
bundler (>= 1.3.0, < 2.0)
|
|
57
|
+
railties (= 4.0.0)
|
|
58
|
+
sprockets-rails (~> 2.0.0)
|
|
59
|
+
railties (4.0.0)
|
|
60
|
+
actionpack (= 4.0.0)
|
|
61
|
+
activesupport (= 4.0.0)
|
|
62
|
+
rake (>= 0.8.7)
|
|
63
|
+
thor (>= 0.18.1, < 2.0)
|
|
64
|
+
rake (10.1.0)
|
|
65
|
+
rspec (2.14.1)
|
|
66
|
+
rspec-core (~> 2.14.0)
|
|
67
|
+
rspec-expectations (~> 2.14.0)
|
|
68
|
+
rspec-mocks (~> 2.14.0)
|
|
69
|
+
rspec-core (2.14.5)
|
|
70
|
+
rspec-expectations (2.14.2)
|
|
71
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
|
72
|
+
rspec-mocks (2.14.3)
|
|
73
|
+
sprockets (2.10.0)
|
|
74
|
+
hike (~> 1.2)
|
|
75
|
+
multi_json (~> 1.0)
|
|
76
|
+
rack (~> 1.0)
|
|
77
|
+
tilt (~> 1.1, != 1.3.0)
|
|
78
|
+
sprockets-rails (2.0.0)
|
|
79
|
+
actionpack (>= 3.0)
|
|
80
|
+
activesupport (>= 3.0)
|
|
81
|
+
sprockets (~> 2.8)
|
|
82
|
+
sqlite3 (1.3.8)
|
|
83
|
+
thor (0.18.1)
|
|
84
|
+
thread_safe (0.1.2)
|
|
85
|
+
atomic
|
|
86
|
+
tilt (1.4.1)
|
|
87
|
+
treetop (1.4.15)
|
|
88
|
+
polyglot
|
|
89
|
+
polyglot (>= 0.3.1)
|
|
90
|
+
tzinfo (0.3.37)
|
|
91
|
+
|
|
92
|
+
PLATFORMS
|
|
93
|
+
ruby
|
|
94
|
+
|
|
95
|
+
DEPENDENCIES
|
|
96
|
+
acts_as_label!
|
|
97
|
+
rspec (>= 2.0.0)
|
|
98
|
+
sqlite3 (>= 1.3.6)
|
data/acts_as_label.gemspec
CHANGED
data/lib/acts_as_label/base.rb
CHANGED
|
@@ -94,7 +94,7 @@ module Coroutine #:nodoc:
|
|
|
94
94
|
# validations
|
|
95
95
|
validates_presence_of system_label
|
|
96
96
|
validates_length_of system_label, :maximum => 255
|
|
97
|
-
validates_format_of system_label, :with =>
|
|
97
|
+
validates_format_of system_label, :with => /\A[A-Z][_A-Z0-9]*\Z/
|
|
98
98
|
validates_presence_of label
|
|
99
99
|
validates_length_of label, :maximum => 255
|
|
100
100
|
|
metadata
CHANGED
|
@@ -1,54 +1,71 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: acts_as_label
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
version: 1.1.6
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.1.7
|
|
6
5
|
platform: ruby
|
|
7
|
-
authors:
|
|
6
|
+
authors:
|
|
8
7
|
- Coroutine
|
|
9
8
|
- John Dugan
|
|
10
9
|
autorequire:
|
|
11
10
|
bindir: bin
|
|
12
11
|
cert_chain: []
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
dependencies:
|
|
17
|
-
- !ruby/object:Gem::Dependency
|
|
12
|
+
date: 2013-08-23 00:00:00.000000000 Z
|
|
13
|
+
dependencies:
|
|
14
|
+
- !ruby/object:Gem::Dependency
|
|
18
15
|
name: rails
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
- - ">="
|
|
24
|
-
- !ruby/object:Gem::Version
|
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
|
17
|
+
requirements:
|
|
18
|
+
- - '>='
|
|
19
|
+
- !ruby/object:Gem::Version
|
|
25
20
|
version: 3.0.0
|
|
26
21
|
type: :runtime
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
prerelease: false
|
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
24
|
+
requirements:
|
|
25
|
+
- - '>='
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
version: 3.0.0
|
|
28
|
+
- !ruby/object:Gem::Dependency
|
|
29
29
|
name: rspec
|
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
- - '>='
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: 2.0.0
|
|
35
|
+
type: :development
|
|
30
36
|
prerelease: false
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
- !ruby/object:Gem::Version
|
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - '>='
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
36
41
|
version: 2.0.0
|
|
42
|
+
- !ruby/object:Gem::Dependency
|
|
43
|
+
name: sqlite3
|
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
|
45
|
+
requirements:
|
|
46
|
+
- - '>='
|
|
47
|
+
- !ruby/object:Gem::Version
|
|
48
|
+
version: 1.3.6
|
|
37
49
|
type: :development
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
50
|
+
prerelease: false
|
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
52
|
+
requirements:
|
|
53
|
+
- - '>='
|
|
54
|
+
- !ruby/object:Gem::Version
|
|
55
|
+
version: 1.3.6
|
|
56
|
+
description: This acts_as extension implements a system label and a friendly label
|
|
57
|
+
on a class and centralizes the logic for performing validations and accessing items
|
|
58
|
+
by system label.
|
|
59
|
+
email:
|
|
41
60
|
- gems@coroutine.com
|
|
42
61
|
executables: []
|
|
43
|
-
|
|
44
62
|
extensions: []
|
|
45
|
-
|
|
46
63
|
extra_rdoc_files: []
|
|
47
|
-
|
|
48
|
-
files:
|
|
64
|
+
files:
|
|
49
65
|
- .gitignore
|
|
50
66
|
- .specification
|
|
51
67
|
- Gemfile
|
|
68
|
+
- Gemfile.lock
|
|
52
69
|
- MIT-LICENSE
|
|
53
70
|
- README.rdoc
|
|
54
71
|
- Rakefile
|
|
@@ -59,34 +76,31 @@ files:
|
|
|
59
76
|
- lib/acts_as_label/version.rb
|
|
60
77
|
- test/acts_as_label_test.rb
|
|
61
78
|
- test/test_helper.rb
|
|
62
|
-
has_rdoc: true
|
|
63
79
|
homepage: http://github.com/coroutine/acts_as_label
|
|
64
80
|
licenses: []
|
|
65
|
-
|
|
81
|
+
metadata: {}
|
|
66
82
|
post_install_message:
|
|
67
83
|
rdoc_options: []
|
|
68
|
-
|
|
69
|
-
require_paths:
|
|
84
|
+
require_paths:
|
|
70
85
|
- lib
|
|
71
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: "0"
|
|
86
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
87
|
+
requirements:
|
|
88
|
+
- - '>='
|
|
89
|
+
- !ruby/object:Gem::Version
|
|
90
|
+
version: '0'
|
|
91
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
|
+
requirements:
|
|
93
|
+
- - '>='
|
|
94
|
+
- !ruby/object:Gem::Version
|
|
95
|
+
version: '0'
|
|
83
96
|
requirements: []
|
|
84
|
-
|
|
85
97
|
rubyforge_project: acts_as_label
|
|
86
|
-
rubygems_version:
|
|
98
|
+
rubygems_version: 2.0.3
|
|
87
99
|
signing_key:
|
|
88
|
-
specification_version:
|
|
89
|
-
summary: This acts_as extension simplifies the process of assigning mutable user-friendly
|
|
90
|
-
|
|
100
|
+
specification_version: 4
|
|
101
|
+
summary: This acts_as extension simplifies the process of assigning mutable user-friendly
|
|
102
|
+
labels to immutable system labels.
|
|
103
|
+
test_files:
|
|
91
104
|
- test/acts_as_label_test.rb
|
|
92
105
|
- test/test_helper.rb
|
|
106
|
+
has_rdoc:
|