ecogem 0.0.5 → 0.0.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/.rspec +1 -0
- data/README.md +3 -3
- data/Rakefile +1 -2
- data/ecogem.gemspec +1 -0
- data/lib/ecogem/version.rb +55 -1
- data/spec/features/basic_example/Ecogemfile +48 -0
- data/spec/features/basic_example/expected +18 -0
- data/spec/features/basic_example_spec.rb +17 -0
- data/spec/spec_helper.rb +7 -0
- data/tasks/test.rb +2 -0
- data/tasks/test/all.rb +12 -0
- data/tasks/test/install_bundlers.rb +10 -0
- metadata +30 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0c7e52bb64caae6ae736ac1f26876d9a03dca80
|
4
|
+
data.tar.gz: 66b595bb3cc78dc2173ebda35e79240909f84ad1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2592de73e98f26ef4189a3ba69a084bab7c0e4dfb6c4707f7663871de64706fed8670fa79c6f8d2a6ec4c328003c272bdd7a6df5330e3b209b9508a1ebfb47bb
|
7
|
+
data.tar.gz: e7c202956d4ddbeb6277d7cbbcef5457872c138ce6eeb8fedb3400b847f1c1532b712e01d24bd90562391f29f58efa7977edefcccf01a7fa0561da6e0cb88112
|
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--require ./spec/spec_helper.rb
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@ Supplements Bundler for installing private gems. https://rubygems.org/gems/ecoge
|
|
4
4
|
|
5
5
|
## Preface
|
6
6
|
|
7
|
-
|
7
|
+
My gem A depends on my private gem B whose source is served from GitHub. In development, I can specify B's location with _:git_ option in A's Gemfile rather than A's gemspec.
|
8
8
|
|
9
9
|
A's Gemfile:
|
10
10
|
|
@@ -14,7 +14,7 @@ gem 'gem-b', git: 'git@github.com:me/gem-b.git'
|
|
14
14
|
gemspec
|
15
15
|
```
|
16
16
|
|
17
|
-
It's cool. So, I
|
17
|
+
It's cool. So, I want to use A in my application.
|
18
18
|
|
19
19
|
My application's Gemfile:
|
20
20
|
|
@@ -27,7 +27,7 @@ Then `bundle install` prints:
|
|
27
27
|
|
28
28
|
Could not find gem 'gem-b (>= 0) ruby', which is required by gem 'gem-a (>= 0) ruby', in any of the sources.
|
29
29
|
|
30
|
-
Oh, my! Bundler does not resolve such
|
30
|
+
Oh, my! Bundler does not resolve such dependencies.
|
31
31
|
|
32
32
|
To solve this, I need to:
|
33
33
|
|
data/Rakefile
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require_relative 'tasks/test'
|
data/ecogem.gemspec
CHANGED
data/lib/ecogem/version.rb
CHANGED
@@ -1,3 +1,57 @@
|
|
1
1
|
module Ecogem
|
2
|
-
VERSION = "0.0.
|
2
|
+
VERSION = "0.0.6"
|
3
|
+
|
4
|
+
BUNDLER_VERSIONS = %w[
|
5
|
+
1.12.0.rc
|
6
|
+
1.12.0.pre.2
|
7
|
+
1.12.0.pre.1
|
8
|
+
1.11.2
|
9
|
+
1.11.1
|
10
|
+
1.11.0
|
11
|
+
1.11.0.pre.2
|
12
|
+
1.11.0.pre.1
|
13
|
+
1.10.6
|
14
|
+
1.10.5
|
15
|
+
1.10.4
|
16
|
+
1.10.3
|
17
|
+
1.10.2
|
18
|
+
1.10.1
|
19
|
+
1.10.0
|
20
|
+
1.10.0.rc
|
21
|
+
1.10.0.pre.2
|
22
|
+
1.10.0.pre.1
|
23
|
+
1.10.0.pre
|
24
|
+
1.9.10
|
25
|
+
1.9.9
|
26
|
+
1.9.8
|
27
|
+
1.9.7
|
28
|
+
1.9.6
|
29
|
+
1.9.5
|
30
|
+
1.9.4
|
31
|
+
1.9.3
|
32
|
+
1.9.2
|
33
|
+
1.9.1
|
34
|
+
1.9.0
|
35
|
+
1.9.0.rc
|
36
|
+
1.9.0.pre.1
|
37
|
+
1.9.0.pre
|
38
|
+
1.8.9
|
39
|
+
1.8.8
|
40
|
+
1.8.7
|
41
|
+
1.8.6
|
42
|
+
1.8.5
|
43
|
+
1.8.4
|
44
|
+
1.8.3
|
45
|
+
1.8.2
|
46
|
+
1.8.1
|
47
|
+
1.8.0
|
48
|
+
1.8.0.pre
|
49
|
+
1.7.15
|
50
|
+
1.7.14
|
51
|
+
1.7.13
|
52
|
+
1.7.12
|
53
|
+
1.7.11
|
54
|
+
1.7.10
|
55
|
+
1.7.9
|
56
|
+
]
|
3
57
|
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
4
|
+
gem 'rails', '4.2.0'
|
5
|
+
# Use sqlite3 as the database for Active Record
|
6
|
+
gem 'sqlite3'
|
7
|
+
# Use SCSS for stylesheets
|
8
|
+
gem 'sass-rails', '~> 5.0'
|
9
|
+
# Use Uglifier as compressor for JavaScript assets
|
10
|
+
gem 'uglifier', '>= 1.3.0'
|
11
|
+
# Use CoffeeScript for .coffee assets and views
|
12
|
+
gem 'coffee-rails', '~> 4.1.0'
|
13
|
+
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
|
14
|
+
# gem 'therubyracer', platforms: :ruby
|
15
|
+
|
16
|
+
# Use jquery as the JavaScript library
|
17
|
+
gem 'jquery-rails'
|
18
|
+
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
|
19
|
+
gem 'turbolinks'
|
20
|
+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
21
|
+
gem 'jbuilder', '~> 2.0'
|
22
|
+
# bundle exec rake doc:rails generates the API under doc/api.
|
23
|
+
gem 'sdoc', '~> 0.4.0', group: :doc
|
24
|
+
|
25
|
+
# Use ActiveModel has_secure_password
|
26
|
+
# gem 'bcrypt', '~> 3.1.7'
|
27
|
+
|
28
|
+
# Use Unicorn as the app server
|
29
|
+
# gem 'unicorn'
|
30
|
+
|
31
|
+
# Use Capistrano for deployment
|
32
|
+
# gem 'capistrano-rails', group: :development
|
33
|
+
|
34
|
+
group :development, :test do
|
35
|
+
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
36
|
+
gem 'byebug'
|
37
|
+
|
38
|
+
# Access an IRB console on exception pages or by using <%= console %> in views
|
39
|
+
gem 'web-console', '~> 2.0'
|
40
|
+
|
41
|
+
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
|
42
|
+
gem 'spring'
|
43
|
+
end
|
44
|
+
|
45
|
+
group :test do
|
46
|
+
gem 'rspec', '~> 3.1.0'
|
47
|
+
gem 'capybara', '~> 2.4.4'
|
48
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require "ecogem"
|
2
|
+
|
3
|
+
source "https://rubygems.org/"
|
4
|
+
|
5
|
+
gem "rails", "= 4.2.0"
|
6
|
+
gem "sqlite3"
|
7
|
+
gem "sass-rails", "~> 5.0"
|
8
|
+
gem "uglifier", ">= 1.3.0"
|
9
|
+
gem "coffee-rails", "~> 4.1.0"
|
10
|
+
gem "jquery-rails"
|
11
|
+
gem "turbolinks"
|
12
|
+
gem "jbuilder", "~> 2.0"
|
13
|
+
gem "sdoc", "~> 0.4.0", group: :doc
|
14
|
+
gem "byebug", group: [:development, :test]
|
15
|
+
gem "web-console", "~> 2.0", group: [:development, :test]
|
16
|
+
gem "spring", group: [:development, :test]
|
17
|
+
gem "rspec", "~> 3.1.0", group: :test
|
18
|
+
gem "capybara", "~> 2.4.4", group: :test
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
require 'tmpdir'
|
3
|
+
|
4
|
+
RSpec.describe "basic example" do
|
5
|
+
it do
|
6
|
+
dir = File.expand_path('../basic_example', __FILE__)
|
7
|
+
Dir.mktmpdir(nil, dir) do |tmpdir|
|
8
|
+
FileUtils.cp "#{dir}/Ecogemfile", "#{tmpdir}/Ecogemfile"
|
9
|
+
Dir.chdir(tmpdir) do
|
10
|
+
Ecogem.new_workspace(nil) do |ws|
|
11
|
+
ws.gemfile.write
|
12
|
+
expect(File.read("#{tmpdir}/Gemfile").strip).to eq(File.read("#{dir}/expected").strip)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/spec/spec_helper.rb
ADDED
data/tasks/test.rb
ADDED
data/tasks/test/all.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
namespace :test do
|
2
|
+
desc "execute all tests"
|
3
|
+
task :all do
|
4
|
+
root = ::File.expand_path('../../..', __FILE__)
|
5
|
+
require "#{root}/lib/ecogem/version"
|
6
|
+
Ecogem::BUNDLER_VERSIONS.each do |ver|
|
7
|
+
puts "version: #{ver}"
|
8
|
+
env = "ECOGEM_TEST_BUNDLER_VERSION=\"#{ver}\""
|
9
|
+
exit false unless system("cd \"#{root}\";#{env} rspec")
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
namespace :test do
|
2
|
+
desc "install all supported versions of bundler"
|
3
|
+
task :install_bundlers do
|
4
|
+
require_relative '../../lib/ecogem/version'
|
5
|
+
Ecogem::BUNDLER_VERSIONS.each do |ver|
|
6
|
+
system "gem install bundler -v #{ver} --no-rdoc --no-ri"
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecogem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mosop
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 3.1.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.1.0
|
41
55
|
description: ''
|
42
56
|
email:
|
43
57
|
- ''
|
@@ -47,6 +61,7 @@ extensions: []
|
|
47
61
|
extra_rdoc_files: []
|
48
62
|
files:
|
49
63
|
- ".gitignore"
|
64
|
+
- ".rspec"
|
50
65
|
- Gemfile
|
51
66
|
- LICENSE.txt
|
52
67
|
- README.md
|
@@ -78,6 +93,13 @@ files:
|
|
78
93
|
- lib/ecogem/util/config/value_container.rb
|
79
94
|
- lib/ecogem/version.rb
|
80
95
|
- lib/ecogem/workspace.rb
|
96
|
+
- spec/features/basic_example/Ecogemfile
|
97
|
+
- spec/features/basic_example/expected
|
98
|
+
- spec/features/basic_example_spec.rb
|
99
|
+
- spec/spec_helper.rb
|
100
|
+
- tasks/test.rb
|
101
|
+
- tasks/test/all.rb
|
102
|
+
- tasks/test/install_bundlers.rb
|
81
103
|
homepage: https://github.com/moso2p/ecogem
|
82
104
|
licenses:
|
83
105
|
- MIT
|
@@ -98,9 +120,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
120
|
version: '0'
|
99
121
|
requirements: []
|
100
122
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.
|
123
|
+
rubygems_version: 2.4.5.1
|
102
124
|
signing_key:
|
103
125
|
specification_version: 4
|
104
126
|
summary: Supplements Bundler for installing private gems.
|
105
|
-
test_files:
|
106
|
-
|
127
|
+
test_files:
|
128
|
+
- spec/features/basic_example/Ecogemfile
|
129
|
+
- spec/features/basic_example/expected
|
130
|
+
- spec/features/basic_example_spec.rb
|
131
|
+
- spec/spec_helper.rb
|