gemrat 0.4.5 → 0.4.6
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 +4 -4
- data/README.md +2 -0
- data/lib/gemrat/gem.rb +1 -1
- data/lib/gemrat/version.rb +1 -1
- data/spec/gemrat_spec.rb +15 -0
- data/spec/resources/rubygems_response_shim_for_sqlite3 +16 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc9256476666a6c1542dda027daac7b88f4eecc9
|
4
|
+
data.tar.gz: 2008fae39581749008dae9d9d260844d68c2035a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6577e2c149c664838179c68bfcdb93c6d2f0002cd87b7c10f881137d086f396876835f1fb1406ddeb8aacddb5bb75cf0f96692b80eda036a3946f41dff2dd772
|
7
|
+
data.tar.gz: c1f1febcac222587718b72369a219a53a736f0cea2f2153d1c34ca4fe14a340524e80285d18f7e49b34e9958e3b6000790340b384840c12f63cec8e076409c27
|
data/README.md
CHANGED
@@ -45,6 +45,8 @@ Options:
|
|
45
45
|
-g, --gemfile GEMFILE # Specify the Gemfile to be used, defaults to 'Gemfile'
|
46
46
|
--no-install # Skip executing bundle after adding the gem.
|
47
47
|
--no-version # Do not add a version to the gemfile.
|
48
|
+
-p, --pessimistic # Add gem with a pessimistic operator (~>)
|
49
|
+
-o, --optimistic # Add gem with an optimistic operator (>=)
|
48
50
|
-v, --version # Show current gemrat version.
|
49
51
|
-h, --help # Print these usage instructions.
|
50
52
|
</pre>
|
data/lib/gemrat/gem.rb
CHANGED
data/lib/gemrat/version.rb
CHANGED
data/spec/gemrat_spec.rb
CHANGED
@@ -56,6 +56,21 @@ describe Gemrat do
|
|
56
56
|
output.should include("Bundling")
|
57
57
|
end
|
58
58
|
|
59
|
+
# Tests for sqlite3 and s3 bugs
|
60
|
+
context "when the gem ends in a number" do
|
61
|
+
let!(:output) { capture_stdout { Gemrat::Runner.run("sqlite3", "-g", "TestGemfile") }}
|
62
|
+
|
63
|
+
it "should parse the gem correctly" do
|
64
|
+
output.should include("gem 'sqlite3', '1.3.7' added to your Gemfile.")
|
65
|
+
output.should_not include("gem 'sqlite3', '30.3.12' added to your Gemfile.")
|
66
|
+
end
|
67
|
+
|
68
|
+
it "should add the gem to the gemfile correctly" do
|
69
|
+
File.read("TestGemfile").should match(/sqlite3.+1\.3\.7/)
|
70
|
+
File.read("TestGemfile").should_not match(/sqlite3.+3'\.3\.12/)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
59
74
|
context "when the --no-install flag is given" do
|
60
75
|
let(:output) { capture_stdout { Gemrat::Runner.run("sinatra", "-g", "TestGemfile", "--no-install") }}
|
61
76
|
it "adds latest gem version to gemfile" do
|
@@ -0,0 +1,16 @@
|
|
1
|
+
activerecord-jdbcsqlite3-adapter (1.2.9, 1.0.3 java)
|
2
|
+
dawanda-sqlite3 (1.3.3)
|
3
|
+
dbd-sqlite3 (1.2.5)
|
4
|
+
do_sqlite3 (0.10.13 ruby java x86-mingw32 x86-mswin32-60)
|
5
|
+
femto-sqlite3 (1.3.7)
|
6
|
+
fluent-plugin-sqlite3 (0.1.0)
|
7
|
+
fluent-query-sqlite3 (0.9.0)
|
8
|
+
jdbc-sqlite3 (3.7.2.1, 3.6.14.2.056 java)
|
9
|
+
rdbi-driver-sqlite3 (0.9.1)
|
10
|
+
sqlite3 (1.3.7 ruby x86-mingw32 x86-mswin32-60)
|
11
|
+
sqlite3-dotnet (3.7.2.1)
|
12
|
+
sqlite3-ironruby (0.1.1)
|
13
|
+
sqlite3-ruby (1.3.3, 1.3.2 x86-mingw32 x86-mswin32-60, 1.2.5 x86-mswin32, 1.2.3 mswin32)
|
14
|
+
sqlite3_ar_regexp (1.1.0)
|
15
|
+
swift-db-sqlite3 (0.1.3)
|
16
|
+
tgbyte-activerecord-jdbcsqlite3-adapter (1.2.2.5)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemrat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dru Riley
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-07-
|
13
|
+
date: 2013-07-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: colored
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- spec/resources/rubygems_response_shim_for_minitest
|
127
127
|
- spec/resources/rubygems_response_shim_for_rails
|
128
128
|
- spec/resources/rubygems_response_shim_for_sinatra
|
129
|
+
- spec/resources/rubygems_response_shim_for_sqlite3
|
129
130
|
- spec/resources/rubygems_response_shim_for_thin
|
130
131
|
- spec/resources/rubygems_response_shim_for_turbolinks
|
131
132
|
- spec/spec_helper.rb
|
@@ -159,6 +160,7 @@ test_files:
|
|
159
160
|
- spec/resources/rubygems_response_shim_for_minitest
|
160
161
|
- spec/resources/rubygems_response_shim_for_rails
|
161
162
|
- spec/resources/rubygems_response_shim_for_sinatra
|
163
|
+
- spec/resources/rubygems_response_shim_for_sqlite3
|
162
164
|
- spec/resources/rubygems_response_shim_for_thin
|
163
165
|
- spec/resources/rubygems_response_shim_for_turbolinks
|
164
166
|
- spec/spec_helper.rb
|