lam 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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/lam/build/traveling_ruby.rb +25 -0
- data/lib/lam/version.rb +1 -1
- data/spec/fixtures/project/Gemfile.lock +6 -10
- data/spec/fixtures/project/bin/lam +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 239112ad06f44a6ef1c2fcf544caecce49cfd125
|
|
4
|
+
data.tar.gz: 708dd09be324c075644686bd90d255bd4ea1b026
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 893dcbd2e8ddc28f0f51c4ea3f6c44d241f898dc405ac9a1523bda20d8b6d75a08b9de08f6b8e3671cc1859b7189958d22930fdc9a438e9cbaa371a0b49eb3cb
|
|
7
|
+
data.tar.gz: c76663f7468bc9029dffc7cd20ab22779a9bba3aec8c2e63e6776a7cf1b9c8adb1d9613ad30cb472df6e3fe2e94d0876d0d34452527dfd558cd6402e3d8404ea
|
data/CHANGELOG.md
ADDED
|
@@ -23,6 +23,7 @@ class Lam::Build
|
|
|
23
23
|
download_traveling_ruby
|
|
24
24
|
unpack_traveling_ruby
|
|
25
25
|
bundle_install
|
|
26
|
+
vendor_gemfiles
|
|
26
27
|
end
|
|
27
28
|
|
|
28
29
|
move_bundled_to_project
|
|
@@ -84,6 +85,26 @@ class Lam::Build
|
|
|
84
85
|
puts 'Bundle install success.'
|
|
85
86
|
end
|
|
86
87
|
|
|
88
|
+
# The wrapper script doesnt work unless you move the gem files in the
|
|
89
|
+
# bundled/gems folder and export it to BUNDLE_GEMFILE in the
|
|
90
|
+
# wrapper script.
|
|
91
|
+
def vendor_gemfiles
|
|
92
|
+
puts "Moving gemfiles into #{bundled_gems_dest}/"
|
|
93
|
+
FileUtils.mv("Gemfile", "#{bundled_gems_dest}/")
|
|
94
|
+
FileUtils.mv("Gemfile.lock", "#{bundled_gems_dest}/")
|
|
95
|
+
|
|
96
|
+
bundle_config_path = "#{bundled_gems_dest}/.bundle/config"
|
|
97
|
+
puts "Generating #{bundle_config_path}"
|
|
98
|
+
FileUtils.mkdir_p(File.dirname(bundle_config_path))
|
|
99
|
+
bundle_config =<<-EOL
|
|
100
|
+
BUNDLE_PATH: .
|
|
101
|
+
BUNDLE_WITHOUT: development
|
|
102
|
+
BUNDLE_DISABLE_SHARED_GEMS: '1'
|
|
103
|
+
EOL
|
|
104
|
+
IO.write(bundle_config_path, bundle_config)
|
|
105
|
+
|
|
106
|
+
end
|
|
107
|
+
|
|
87
108
|
def move_bundled_to_project
|
|
88
109
|
if File.exist?("#{Lam.root}bundled")
|
|
89
110
|
puts "Removing current bundled folder"
|
|
@@ -97,6 +118,10 @@ class Lam::Build
|
|
|
97
118
|
"bundled/ruby"
|
|
98
119
|
end
|
|
99
120
|
|
|
121
|
+
def bundled_gems_dest
|
|
122
|
+
"bundled/gems"
|
|
123
|
+
end
|
|
124
|
+
|
|
100
125
|
def traveling_ruby_url
|
|
101
126
|
TRAVELING_RUBY_VERSION
|
|
102
127
|
end
|
data/lib/lam/version.rb
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: /Users/tung/src/tongueroo/lam
|
|
3
|
-
specs:
|
|
4
|
-
lam (0.0.1)
|
|
5
|
-
activesupport
|
|
6
|
-
colorize
|
|
7
|
-
hashie
|
|
8
|
-
thor
|
|
9
|
-
|
|
10
1
|
GEM
|
|
11
2
|
remote: https://rubygems.org/
|
|
12
3
|
specs:
|
|
@@ -20,6 +11,11 @@ GEM
|
|
|
20
11
|
hashie (3.5.6)
|
|
21
12
|
i18n (0.9.0)
|
|
22
13
|
concurrent-ruby (~> 1.0)
|
|
14
|
+
lam (0.1.1)
|
|
15
|
+
activesupport
|
|
16
|
+
colorize
|
|
17
|
+
hashie
|
|
18
|
+
thor
|
|
23
19
|
minitest (5.10.3)
|
|
24
20
|
print_ruby_info (0.0.3)
|
|
25
21
|
thor (0.20.0)
|
|
@@ -31,5 +27,5 @@ PLATFORMS
|
|
|
31
27
|
ruby
|
|
32
28
|
|
|
33
29
|
DEPENDENCIES
|
|
34
|
-
lam
|
|
30
|
+
lam
|
|
35
31
|
print_ruby_info
|
|
@@ -8,7 +8,7 @@ PROJECTDIR="`cd \"$PROJECTDIR/..\" && pwd`"
|
|
|
8
8
|
|
|
9
9
|
# Tell Bundler where the Gemfile and gems are.
|
|
10
10
|
# IMPORTANT: the Gemfile must be in the same bundled/gems folder
|
|
11
|
-
export BUNDLE_GEMFILE="$PROJECTDIR/Gemfile"
|
|
11
|
+
export BUNDLE_GEMFILE="$PROJECTDIR/bundled/gems/Gemfile"
|
|
12
12
|
unset BUNDLE_IGNORE_CONFIG
|
|
13
13
|
|
|
14
14
|
# Run the actual app using the bundled Ruby interpreter, with Bundler activated.
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lam
|
|
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
|
- Tung Nguyen
|
|
@@ -162,6 +162,7 @@ files:
|
|
|
162
162
|
- ".gitignore"
|
|
163
163
|
- ".rspec"
|
|
164
164
|
- ".ruby-version"
|
|
165
|
+
- CHANGELOG.md
|
|
165
166
|
- Gemfile
|
|
166
167
|
- Gemfile.lock
|
|
167
168
|
- Guardfile
|