version_compare 0.1.1 → 0.2.0
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 +5 -13
- data/.gitignore +11 -0
- data/.travis.yml +21 -0
- data/CHANGELOG.md +10 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +51 -0
- data/LICENSE.txt +21 -0
- data/README.md +84 -63
- data/Rakefile +6 -28
- data/bin/console +15 -0
- data/bin/setup +8 -0
- data/lib/version_compare.rb +3 -3
- data/lib/version_compare/comparable_version.rb +66 -55
- data/lib/version_compare/conversions.rb +34 -32
- data/lib/version_compare/version.rb +3 -0
- data/version_compare.gemspec +40 -0
- metadata +108 -98
- data/MIT-LICENSE +0 -20
- data/test/comparable_version_test.rb +0 -188
- data/test/conversions_test.rb +0 -82
- data/test/dummy/README.rdoc +0 -28
- data/test/dummy/Rakefile +0 -6
- data/test/dummy/app/assets/javascripts/application.js +0 -13
- data/test/dummy/app/assets/stylesheets/application.css +0 -13
- data/test/dummy/app/controllers/application_controller.rb +0 -5
- data/test/dummy/app/helpers/application_helper.rb +0 -2
- data/test/dummy/app/views/layouts/application.html.erb +0 -14
- data/test/dummy/bin/bundle +0 -3
- data/test/dummy/bin/rails +0 -4
- data/test/dummy/bin/rake +0 -4
- data/test/dummy/config.ru +0 -4
- data/test/dummy/config/application.rb +0 -29
- data/test/dummy/config/boot.rb +0 -5
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/config/environment.rb +0 -5
- data/test/dummy/config/environments/development.rb +0 -29
- data/test/dummy/config/environments/production.rb +0 -80
- data/test/dummy/config/environments/test.rb +0 -36
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/test/dummy/config/initializers/inflections.rb +0 -16
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -12
- data/test/dummy/config/initializers/session_store.rb +0 -3
- data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy/config/locales/en.yml +0 -23
- data/test/dummy/config/routes.rb +0 -56
- data/test/dummy/log/test.log +0 -0
- data/test/dummy/public/404.html +0 -58
- data/test/dummy/public/422.html +0 -58
- data/test/dummy/public/500.html +0 -57
- data/test/dummy/public/favicon.ico +0 -0
- data/test/test_helper.rb +0 -13
data/MIT-LICENSE
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright 2013 Paul Dobbins
|
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,188 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
describe ComparableVersion do
|
4
|
-
describe "#inspect" do
|
5
|
-
it "returns expected inspect String format" do
|
6
|
-
assert ComparableVersion("2.0.0").inspect
|
7
|
-
"ComparableVersion[major:2, minor:0, tiny:0]"
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
describe "#>" do
|
12
|
-
it "returns true when lvalue is greater than rvalue" do
|
13
|
-
ComparableVersion(2).must_be :>, ComparableVersion(1)
|
14
|
-
ComparableVersion(2).must_be :>, ComparableVersion(1.2)
|
15
|
-
ComparableVersion(2).must_be :>, ComparableVersion("1.2.3")
|
16
|
-
ComparableVersion(2).must_be :>, ComparableVersion("1.2.3.4")
|
17
|
-
|
18
|
-
ComparableVersion(2.0).must_be :>, ComparableVersion(1)
|
19
|
-
ComparableVersion(2.0).must_be :>, ComparableVersion(1.0)
|
20
|
-
ComparableVersion(2.1).must_be :>, ComparableVersion("2.0.3")
|
21
|
-
ComparableVersion(2.1).must_be :>, ComparableVersion("2.0.3.4")
|
22
|
-
|
23
|
-
ComparableVersion("2.0.0").must_be :>, ComparableVersion(1)
|
24
|
-
ComparableVersion("2.1.0").must_be :>, ComparableVersion(1.2)
|
25
|
-
ComparableVersion("2.1.0").must_be :>, ComparableVersion("1.2.0")
|
26
|
-
ComparableVersion("2.1.1").must_be :>, ComparableVersion("2.1.0.4")
|
27
|
-
|
28
|
-
ComparableVersion("2.0.0.0").must_be :>, ComparableVersion(1)
|
29
|
-
ComparableVersion("2.1.0.0").must_be :>, ComparableVersion(2.0)
|
30
|
-
ComparableVersion("2.1.1.0").must_be :>, ComparableVersion("2.1.0")
|
31
|
-
ComparableVersion("2.1.3.0").must_be :>, ComparableVersion("2.1.2.4")
|
32
|
-
|
33
|
-
ComparableVersion(2).must_be :>, ComparableVersion(1.99)
|
34
|
-
ComparableVersion(1.3).must_be :>, ComparableVersion("1.2.99")
|
35
|
-
ComparableVersion("1.2.4").must_be :>, ComparableVersion("1.2.3.99")
|
36
|
-
end
|
37
|
-
|
38
|
-
it "returns false when lvalue is less than rvalue" do
|
39
|
-
ComparableVersion(1).wont_be :>, ComparableVersion(2)
|
40
|
-
ComparableVersion(1.2).wont_be :>, ComparableVersion(2)
|
41
|
-
ComparableVersion("1.2.3").wont_be :>, ComparableVersion(2)
|
42
|
-
ComparableVersion("1.2.3.4").wont_be :>, ComparableVersion(2)
|
43
|
-
|
44
|
-
ComparableVersion(1).wont_be :>, ComparableVersion(2.0)
|
45
|
-
ComparableVersion(2.0).wont_be :>, ComparableVersion(2.1)
|
46
|
-
ComparableVersion("2.0.3").wont_be :>, ComparableVersion(2.1)
|
47
|
-
ComparableVersion("2.0.3.4").wont_be :>, ComparableVersion(2.1)
|
48
|
-
|
49
|
-
ComparableVersion(1).wont_be :>, ComparableVersion("2.0.0")
|
50
|
-
ComparableVersion(1.2).wont_be :>, ComparableVersion("2.1.0")
|
51
|
-
ComparableVersion("2.1.0").wont_be :>, ComparableVersion("2.1.1")
|
52
|
-
ComparableVersion("2.1.0.4").wont_be :>, ComparableVersion("2.1.1")
|
53
|
-
|
54
|
-
ComparableVersion(1).wont_be :>, ComparableVersion("2.0.0.0")
|
55
|
-
ComparableVersion(2.0).wont_be :>, ComparableVersion("2.1.0.0")
|
56
|
-
ComparableVersion("2.1.0").wont_be :>, ComparableVersion("2.1.1.0")
|
57
|
-
ComparableVersion("2.1.0.4").wont_be :>, ComparableVersion("2.1.1.0")
|
58
|
-
|
59
|
-
ComparableVersion(1.99).wont_be :>, ComparableVersion(2)
|
60
|
-
ComparableVersion("1.2.99").wont_be :>, ComparableVersion(1.3)
|
61
|
-
ComparableVersion("1.2.3.99").wont_be :>, ComparableVersion("1.2.4")
|
62
|
-
end
|
63
|
-
|
64
|
-
it "returns false when lvalue is equal to rvalue" do
|
65
|
-
ComparableVersion(1).wont_be :>, ComparableVersion(1.0)
|
66
|
-
ComparableVersion(1.2).wont_be :>, ComparableVersion("1.2.0")
|
67
|
-
ComparableVersion("1.2.3").wont_be :>, ComparableVersion("1.2.3.0")
|
68
|
-
ComparableVersion("1.2.3.4").wont_be :>, ComparableVersion("1.2.3.4")
|
69
|
-
|
70
|
-
ComparableVersion(1.0).wont_be :>, ComparableVersion(1)
|
71
|
-
ComparableVersion("1.2.0").wont_be :>, ComparableVersion(1.2)
|
72
|
-
ComparableVersion("1.2.3").wont_be :>, ComparableVersion("1.2.3.0")
|
73
|
-
ComparableVersion("1.2.3.4").wont_be :>, ComparableVersion("1.2.3.4")
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
describe "#==" do
|
78
|
-
it "returns false when lvalue is less than rvalue" do
|
79
|
-
ComparableVersion(1.2).wont_equal ComparableVersion(2)
|
80
|
-
ComparableVersion("1.2.3").wont_equal ComparableVersion(2)
|
81
|
-
ComparableVersion("1.2.3.4").wont_equal ComparableVersion(2)
|
82
|
-
|
83
|
-
ComparableVersion(1).wont_equal ComparableVersion(2.0)
|
84
|
-
ComparableVersion("2.0.3").wont_equal ComparableVersion(2.1)
|
85
|
-
ComparableVersion("2.0.3.4").wont_equal ComparableVersion(2.1)
|
86
|
-
|
87
|
-
ComparableVersion(1).wont_equal ComparableVersion("2.0.0")
|
88
|
-
ComparableVersion(1.2).wont_equal ComparableVersion("2.1.0")
|
89
|
-
ComparableVersion("2.1.0.4").wont_equal ComparableVersion("2.1.1")
|
90
|
-
|
91
|
-
ComparableVersion(1).wont_equal ComparableVersion("2.0.0.0")
|
92
|
-
ComparableVersion(2.0).wont_equal ComparableVersion("2.1.0.0")
|
93
|
-
ComparableVersion("2.1.0").wont_equal ComparableVersion("2.1.1.0")
|
94
|
-
|
95
|
-
ComparableVersion(1.99).wont_equal ComparableVersion(2)
|
96
|
-
ComparableVersion("1.2.99").wont_equal ComparableVersion(1.3)
|
97
|
-
ComparableVersion("1.2.3.99").wont_equal ComparableVersion("1.2.4")
|
98
|
-
end
|
99
|
-
|
100
|
-
it "returns false when lvalue is greater than rvalue" do
|
101
|
-
ComparableVersion(2).wont_equal ComparableVersion(1.2)
|
102
|
-
ComparableVersion(2).wont_equal ComparableVersion("1.2.3")
|
103
|
-
ComparableVersion(2).wont_equal ComparableVersion("1.2.3.4")
|
104
|
-
|
105
|
-
ComparableVersion(2.0).wont_equal ComparableVersion(1)
|
106
|
-
ComparableVersion(2.1).wont_equal ComparableVersion("2.0.3")
|
107
|
-
ComparableVersion(2.1).wont_equal ComparableVersion("2.0.3.4")
|
108
|
-
|
109
|
-
ComparableVersion("2.0.0").wont_equal ComparableVersion(1)
|
110
|
-
ComparableVersion("2.1.0").wont_equal ComparableVersion(1.2)
|
111
|
-
ComparableVersion("2.1.1").wont_equal ComparableVersion("2.1.0.4")
|
112
|
-
|
113
|
-
ComparableVersion("2.0.0.0").wont_equal ComparableVersion(1)
|
114
|
-
ComparableVersion("2.1.0.0").wont_equal ComparableVersion(2.0)
|
115
|
-
ComparableVersion("2.1.1.0").wont_equal ComparableVersion("2.1.0")
|
116
|
-
|
117
|
-
ComparableVersion(2).wont_equal ComparableVersion(1.99)
|
118
|
-
ComparableVersion(1.3).wont_equal ComparableVersion("1.2.99")
|
119
|
-
ComparableVersion("1.2.4").wont_equal ComparableVersion("1.2.3.99")
|
120
|
-
end
|
121
|
-
|
122
|
-
it "returns true when lvalue is equal to rvalue" do
|
123
|
-
ComparableVersion(1.0).must_equal ComparableVersion(1)
|
124
|
-
ComparableVersion("1.2.0").must_equal ComparableVersion(1.2)
|
125
|
-
ComparableVersion("1.2.3.0").must_equal ComparableVersion("1.2.3")
|
126
|
-
|
127
|
-
ComparableVersion(1).must_equal ComparableVersion(1.0)
|
128
|
-
ComparableVersion(1.2).must_equal ComparableVersion("1.2.0")
|
129
|
-
ComparableVersion("1.2.3").must_equal ComparableVersion("1.2.3.0")
|
130
|
-
end
|
131
|
-
end
|
132
|
-
|
133
|
-
describe "#<" do
|
134
|
-
it "returns true when lvalue is less than rvalue" do
|
135
|
-
ComparableVersion(1.2).must_be :<, ComparableVersion(2)
|
136
|
-
ComparableVersion("1.2.3").must_be :<, ComparableVersion(2)
|
137
|
-
ComparableVersion("1.2.3.4").must_be :<, ComparableVersion(2)
|
138
|
-
|
139
|
-
ComparableVersion(1).must_be :<, ComparableVersion(2.0)
|
140
|
-
ComparableVersion("2.0.3").must_be :<, ComparableVersion(2.1)
|
141
|
-
ComparableVersion("2.0.3.4").must_be :<, ComparableVersion(2.1)
|
142
|
-
|
143
|
-
ComparableVersion(1).must_be :<, ComparableVersion("2.0.0")
|
144
|
-
ComparableVersion(1.2).must_be :<, ComparableVersion("2.1.0")
|
145
|
-
ComparableVersion("2.1.0.4").must_be :<, ComparableVersion("2.1.1")
|
146
|
-
|
147
|
-
ComparableVersion(1).must_be :<, ComparableVersion("2.0.0.0")
|
148
|
-
ComparableVersion(2.0).must_be :<, ComparableVersion("2.1.0.0")
|
149
|
-
ComparableVersion("2.1.0").must_be :<, ComparableVersion("2.1.1.0")
|
150
|
-
|
151
|
-
ComparableVersion(1.99).must_be :<, ComparableVersion(2)
|
152
|
-
ComparableVersion("1.2.99").must_be :<, ComparableVersion(1.3)
|
153
|
-
ComparableVersion("1.2.3.99").must_be :<, ComparableVersion("1.2.4")
|
154
|
-
end
|
155
|
-
|
156
|
-
it "returns false when lvalue is greater than rvalue" do
|
157
|
-
ComparableVersion(2).wont_be :<, ComparableVersion(1.2)
|
158
|
-
ComparableVersion(2).wont_be :<, ComparableVersion("1.2.3")
|
159
|
-
ComparableVersion(2).wont_be :<, ComparableVersion("1.2.3.4")
|
160
|
-
|
161
|
-
ComparableVersion(2.0).wont_be :<, ComparableVersion(1)
|
162
|
-
ComparableVersion(2.1).wont_be :<, ComparableVersion("2.0.3")
|
163
|
-
ComparableVersion(2.1).wont_be :<, ComparableVersion("2.0.3.4")
|
164
|
-
|
165
|
-
ComparableVersion("2.0.0").wont_be :<, ComparableVersion(1)
|
166
|
-
ComparableVersion("2.1.0").wont_be :<, ComparableVersion(1.2)
|
167
|
-
ComparableVersion("2.1.1").wont_be :<, ComparableVersion("2.1.0.4")
|
168
|
-
|
169
|
-
ComparableVersion("2.0.0.0").wont_be :<, ComparableVersion(1)
|
170
|
-
ComparableVersion("2.1.0.0").wont_be :<, ComparableVersion(2.0)
|
171
|
-
ComparableVersion("2.1.1.0").wont_be :<, ComparableVersion("2.1.0")
|
172
|
-
|
173
|
-
ComparableVersion(2).wont_be :<, ComparableVersion(1.99)
|
174
|
-
ComparableVersion(1.3).wont_be :<, ComparableVersion("1.2.99")
|
175
|
-
ComparableVersion("1.2.4").wont_be :<, ComparableVersion("1.2.3.99")
|
176
|
-
end
|
177
|
-
|
178
|
-
it "returns false when lvalue is equal to rvalue" do
|
179
|
-
ComparableVersion(1.0).wont_be :<, ComparableVersion(1)
|
180
|
-
ComparableVersion("1.2.0").wont_be :<, ComparableVersion(1.2)
|
181
|
-
ComparableVersion("1.2.3.0").wont_be :<, ComparableVersion("1.2.3")
|
182
|
-
|
183
|
-
ComparableVersion(1).wont_be :<, ComparableVersion(1.0)
|
184
|
-
ComparableVersion(1.2).wont_be :<, ComparableVersion("1.2.0")
|
185
|
-
ComparableVersion("1.2.3").wont_be :<, ComparableVersion("1.2.3.0")
|
186
|
-
end
|
187
|
-
end
|
188
|
-
end
|
data/test/conversions_test.rb
DELETED
@@ -1,82 +0,0 @@
|
|
1
|
-
require 'test_helper'
|
2
|
-
|
3
|
-
describe Conversions do
|
4
|
-
describe "conversion function" do
|
5
|
-
it "works on integers" do
|
6
|
-
ComparableVersion(1).class.must_equal ComparableVersion
|
7
|
-
end
|
8
|
-
|
9
|
-
it "works on floats" do
|
10
|
-
ComparableVersion(1.2).class.must_equal ComparableVersion
|
11
|
-
end
|
12
|
-
|
13
|
-
it "works on strings" do
|
14
|
-
ComparableVersion("1.2.3.4").class.must_equal ComparableVersion
|
15
|
-
end
|
16
|
-
|
17
|
-
it "works on arrays" do
|
18
|
-
ComparableVersion([1, 2, 3, 4]).must_be_instance_of ComparableVersion
|
19
|
-
ComparableVersion([1, 2, 3, 4]).must_equal ComparableVersion("1.2.3.4")
|
20
|
-
ComparableVersion(["1", "2", "3", "4"]).must_equal ComparableVersion("1.2.3.4")
|
21
|
-
end
|
22
|
-
|
23
|
-
it "works on ComparableVersions" do
|
24
|
-
ComparableVersion(ComparableVersion(1.2)).must_be_instance_of ComparableVersion
|
25
|
-
ComparableVersion(ComparableVersion(1.2)).must_equal ComparableVersion(1.2)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
describe "explicit conversions" do
|
30
|
-
describe "#to_s" do
|
31
|
-
it "returns string regardless of input" do
|
32
|
-
ComparableVersion(1).to_s.must_equal "1"
|
33
|
-
ComparableVersion(1.2).to_s.must_equal "1.2"
|
34
|
-
ComparableVersion("1.2.3").to_s.must_equal "1.2.3"
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
describe "#to_a" do
|
39
|
-
it "returns an array of integers" do
|
40
|
-
ComparableVersion(1).to_a.must_equal [1]
|
41
|
-
ComparableVersion(1.0).to_a.must_equal [1, 0]
|
42
|
-
ComparableVersion("1.2.3").to_a.must_equal [1, 2, 3]
|
43
|
-
ComparableVersion("1.2.3.4").to_a.must_equal [1, 2, 3, 4]
|
44
|
-
ComparableVersion(["1", "2", "3", "4"]).to_a.must_equal [1, 2, 3, 4]
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
describe "implicit conversions" do
|
50
|
-
describe "string concatenation" do
|
51
|
-
it "concatenates" do
|
52
|
-
("version: " + ComparableVersion("1.2.3.4")).must_equal "version: 1.2.3.4"
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
describe "CustomObjects" do
|
57
|
-
describe "without #to_comparable_version" do
|
58
|
-
it "raises TypeError when attempting to convert custom objects that don't implement #to_comparable_version" do
|
59
|
-
-> { ComparableVersion(Object.new) }.must_raise TypeError
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
describe "with #to_comparable_version" do
|
64
|
-
before do
|
65
|
-
class CustomObject < Object
|
66
|
-
VERSION = 1.9
|
67
|
-
def to_comparable_version
|
68
|
-
ComparableVersion.new(VERSION.to_s)
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
subject { CustomObject.new }
|
74
|
-
|
75
|
-
it "returns a ComparableVersion object" do
|
76
|
-
ComparableVersion(subject).must_be_instance_of ComparableVersion
|
77
|
-
ComparableVersion.new(subject).must_be_instance_of ComparableVersion
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
data/test/dummy/README.rdoc
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
== README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
25
|
-
|
26
|
-
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
28
|
-
<tt>rake doc:app</tt>.
|
data/test/dummy/Rakefile
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
-
// listed below.
|
3
|
-
//
|
4
|
-
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
-
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
-
//
|
7
|
-
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
-
// compiled file.
|
9
|
-
//
|
10
|
-
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
-
// about supported directives.
|
12
|
-
//
|
13
|
-
//= require_tree .
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
-
* listed below.
|
4
|
-
*
|
5
|
-
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
-
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
-
*
|
8
|
-
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
-
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
-
*
|
11
|
-
*= require_self
|
12
|
-
*= require_tree .
|
13
|
-
*/
|
@@ -1,14 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<title>Dummy</title>
|
5
|
-
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
|
6
|
-
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
7
|
-
<%= csrf_meta_tags %>
|
8
|
-
</head>
|
9
|
-
<body>
|
10
|
-
|
11
|
-
<%= yield %>
|
12
|
-
|
13
|
-
</body>
|
14
|
-
</html>
|
data/test/dummy/bin/bundle
DELETED
data/test/dummy/bin/rails
DELETED
data/test/dummy/bin/rake
DELETED
data/test/dummy/config.ru
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
Bundler.require(*Rails.groups)
|
6
|
-
require "version_compare"
|
7
|
-
|
8
|
-
module Dummy
|
9
|
-
class Application < Rails::Application
|
10
|
-
# Settings in config/environments/* take precedence over those specified here.
|
11
|
-
# Application configuration should go into files in config/initializers
|
12
|
-
# -- all .rb files in that directory are automatically loaded.
|
13
|
-
|
14
|
-
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
15
|
-
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
16
|
-
# config.time_zone = 'Central Time (US & Canada)'
|
17
|
-
|
18
|
-
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
19
|
-
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
20
|
-
# config.i18n.default_locale = :de
|
21
|
-
|
22
|
-
VERSION = "1.2".freeze
|
23
|
-
|
24
|
-
def to_comparable_version
|
25
|
-
ComparableVersion.new(VERSION)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
data/test/dummy/config/boot.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# SQLite version 3.x
|
2
|
-
# gem install sqlite3
|
3
|
-
#
|
4
|
-
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
-
# gem 'sqlite3'
|
6
|
-
development:
|
7
|
-
adapter: sqlite3
|
8
|
-
database: db/development.sqlite3
|
9
|
-
pool: 5
|
10
|
-
timeout: 5000
|
11
|
-
|
12
|
-
# Warning: The database defined as "test" will be erased and
|
13
|
-
# re-generated from your development database when you run "rake".
|
14
|
-
# Do not set this db to the same as development or production.
|
15
|
-
test:
|
16
|
-
adapter: sqlite3
|
17
|
-
database: db/test.sqlite3
|
18
|
-
pool: 5
|
19
|
-
timeout: 5000
|
20
|
-
|
21
|
-
production:
|
22
|
-
adapter: sqlite3
|
23
|
-
database: db/production.sqlite3
|
24
|
-
pool: 5
|
25
|
-
timeout: 5000
|