natives 0.1.1 → 0.1.2
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 +8 -8
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/VERSION +1 -1
- data/chef-solo/cookbooks/natives/recipes/default.rb +4 -3
- data/lib/natives/app.rb +7 -0
- data/natives.gemspec +6 -6
- data/spec/natives/app_spec.rb +7 -0
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MDk2YzIxZjZmZjExYzljMDk0YmYwM2NkZTMzM2RkMWE2ZDQyNjkxMw==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MWQ4ZjdhOTYyMjE5MGEzZDZkMTE0ZjFhYmNlYjFlYmM1YTFkOTUxZA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZTIyYTYwM2M5MGM3MDY2Nzk3ZjJlYTJiNTk3NTIwNTY3MWU3YjgwMTUzZDk3
|
|
10
|
+
ZTU4NWJkZGU5ZGEwMGZlYjNhN2E2ZGM2YjJiMmQ5OTNkNzIwM2FmOWQ4YTU0
|
|
11
|
+
Y2Q4ZTcxMDU1N2I3Y2M4MjdiNDVjZDFjMmEzZTRkNDY4MWM1NmQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MjY2MTlhYTcwYmZhM2EyOWFmYzlkM2U1MWRkZDVlNzcyOGRlZTNmNTNjODNm
|
|
14
|
+
YjEzM2UyYjA5ZjVjMGU5MzdjNjlkMjBhNzRkMTg5MjZiNmZiZTAyMGZhN2I0
|
|
15
|
+
YWZkYzM1OGUxZmNkODliNmU2ZGZlOTk1MDliYTQ0ZThmZmZkZmY=
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -69,7 +69,7 @@ GEM
|
|
|
69
69
|
multi_json (1.8.2)
|
|
70
70
|
multi_xml (0.5.5)
|
|
71
71
|
multipart-post (1.2.0)
|
|
72
|
-
natives-catalog (0.3.
|
|
72
|
+
natives-catalog (0.3.1)
|
|
73
73
|
net-ssh (2.7.0)
|
|
74
74
|
net-ssh-gateway (1.2.0)
|
|
75
75
|
net-ssh (>= 2.6.5)
|
|
@@ -129,7 +129,7 @@ DEPENDENCIES
|
|
|
129
129
|
bundler
|
|
130
130
|
chef (>= 11.6.2)
|
|
131
131
|
jeweler
|
|
132
|
-
natives-catalog (>= 0.3)
|
|
132
|
+
natives-catalog (>= 0.3.1)
|
|
133
133
|
rdoc
|
|
134
134
|
rspec
|
|
135
135
|
simplecov
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.2
|
|
@@ -15,9 +15,10 @@ include_recipe 'apt' if use_apt?
|
|
|
15
15
|
natives_install_list.each do |catalog_name, entries|
|
|
16
16
|
catalog = Natives::Catalog.new(
|
|
17
17
|
catalog_name,
|
|
18
|
-
node[:platform],
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
node[:platform], node[:platform_version],
|
|
19
|
+
current_package_provider,
|
|
20
|
+
working_dir: node['natives']['config']['working_dir']
|
|
21
|
+
)
|
|
21
22
|
|
|
22
23
|
packages = catalog.native_packages_for(entries.first)
|
|
23
24
|
packages.each do |package_name|
|
data/lib/natives/app.rb
CHANGED
|
@@ -36,6 +36,10 @@ module Natives
|
|
|
36
36
|
|
|
37
37
|
protected
|
|
38
38
|
|
|
39
|
+
def current_working_dir
|
|
40
|
+
Dir.pwd
|
|
41
|
+
end
|
|
42
|
+
|
|
39
43
|
def gem_base_path
|
|
40
44
|
File.absolute_path(File.join(File.dirname(__FILE__), '..', '..'))
|
|
41
45
|
end
|
|
@@ -45,6 +49,9 @@ module Natives
|
|
|
45
49
|
"natives" => {
|
|
46
50
|
"install_list" => {
|
|
47
51
|
"rubygems" => packages
|
|
52
|
+
},
|
|
53
|
+
"config" => {
|
|
54
|
+
"working_dir" => current_working_dir
|
|
48
55
|
}
|
|
49
56
|
}
|
|
50
57
|
}.to_json
|
data/natives.gemspec
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: natives 0.1.
|
|
5
|
+
# stub: natives 0.1.2 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "natives"
|
|
9
|
-
s.version = "0.1.
|
|
9
|
+
s.version = "0.1.2"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.authors = ["Huiming Teo"]
|
|
13
|
-
s.date = "2013-11-
|
|
13
|
+
s.date = "2013-11-04"
|
|
14
14
|
s.description = "Automate libraries installation required by rubygems' native extension."
|
|
15
15
|
s.email = "teohuiming@gmail.com"
|
|
16
16
|
s.executables = ["natives"]
|
|
@@ -87,7 +87,7 @@ Gem::Specification.new do |s|
|
|
|
87
87
|
|
|
88
88
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
89
89
|
s.add_runtime_dependency(%q<chef>, [">= 11.6.2"])
|
|
90
|
-
s.add_runtime_dependency(%q<natives-catalog>, [">= 0.3"])
|
|
90
|
+
s.add_runtime_dependency(%q<natives-catalog>, [">= 0.3.1"])
|
|
91
91
|
s.add_runtime_dependency(%q<thor>, [">= 0"])
|
|
92
92
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
|
93
93
|
s.add_development_dependency(%q<yard>, [">= 0"])
|
|
@@ -97,7 +97,7 @@ Gem::Specification.new do |s|
|
|
|
97
97
|
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
|
98
98
|
else
|
|
99
99
|
s.add_dependency(%q<chef>, [">= 11.6.2"])
|
|
100
|
-
s.add_dependency(%q<natives-catalog>, [">= 0.3"])
|
|
100
|
+
s.add_dependency(%q<natives-catalog>, [">= 0.3.1"])
|
|
101
101
|
s.add_dependency(%q<thor>, [">= 0"])
|
|
102
102
|
s.add_dependency(%q<rspec>, [">= 0"])
|
|
103
103
|
s.add_dependency(%q<yard>, [">= 0"])
|
|
@@ -108,7 +108,7 @@ Gem::Specification.new do |s|
|
|
|
108
108
|
end
|
|
109
109
|
else
|
|
110
110
|
s.add_dependency(%q<chef>, [">= 11.6.2"])
|
|
111
|
-
s.add_dependency(%q<natives-catalog>, [">= 0.3"])
|
|
111
|
+
s.add_dependency(%q<natives-catalog>, [">= 0.3.1"])
|
|
112
112
|
s.add_dependency(%q<thor>, [">= 0"])
|
|
113
113
|
s.add_dependency(%q<rspec>, [">= 0"])
|
|
114
114
|
s.add_dependency(%q<yard>, [">= 0"])
|
data/spec/natives/app_spec.rb
CHANGED
|
@@ -25,6 +25,9 @@ describe Natives::App do
|
|
|
25
25
|
"natives" => {
|
|
26
26
|
"install_list" => {
|
|
27
27
|
"rubygems" => ["foo", "bar"]
|
|
28
|
+
},
|
|
29
|
+
"config" => {
|
|
30
|
+
"working_dir" => Dir.pwd
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
33
|
})
|
|
@@ -39,7 +42,11 @@ describe Natives::App do
|
|
|
39
42
|
"natives" => {
|
|
40
43
|
"install_list" => {
|
|
41
44
|
"rubygems" => []
|
|
45
|
+
},
|
|
46
|
+
"config" => {
|
|
47
|
+
"working_dir" => Dir.pwd
|
|
42
48
|
}
|
|
49
|
+
|
|
43
50
|
}
|
|
44
51
|
})
|
|
45
52
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: natives
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Huiming Teo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-11-
|
|
11
|
+
date: 2013-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: chef
|
|
@@ -33,7 +33,7 @@ dependencies:
|
|
|
33
33
|
- - ! '>='
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
35
|
version: !binary |-
|
|
36
|
-
|
|
36
|
+
MC4zLjE=
|
|
37
37
|
type: :runtime
|
|
38
38
|
prerelease: false
|
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -41,7 +41,7 @@ dependencies:
|
|
|
41
41
|
- - ! '>='
|
|
42
42
|
- !ruby/object:Gem::Version
|
|
43
43
|
version: !binary |-
|
|
44
|
-
|
|
44
|
+
MC4zLjE=
|
|
45
45
|
- !ruby/object:Gem::Dependency
|
|
46
46
|
name: thor
|
|
47
47
|
requirement: !ruby/object:Gem::Requirement
|