softwear-lib 0.0.26 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/softwear +51 -0
- data/lib/softwear/lib/version.rb +1 -1
- data/lib/softwear/lib.rb +56 -55
- 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: 9ed6aaa0804888c1913081c44213c0c47f189a30
|
4
|
+
data.tar.gz: cad06c7337e91d23f198d69607405a1689b4633d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2160ad95faf7aba3715018c6383c682e2ac8ae85ab5d7aa6d56b857d8988c086870f5fb16ea240c23cd5a2bb80a683f3d78c7824448434071044e3882e32be2e
|
7
|
+
data.tar.gz: 092d3642b6f75d15fa422b4ab80c14c87400087761577f96adb922d515de47179394b7d76e7b823422bf8096f91938ab78cd787cca31e8d54ebce51bc3249d0f
|
data/bin/softwear
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'softwear/lib'
|
4
|
+
|
5
|
+
if ARGV.length > 0 && ARGV[0] == 'update'
|
6
|
+
old_gemfile = File.open('Gemfile').read.gsub(/\r\n?/, "\n")
|
7
|
+
gemfile = []
|
8
|
+
|
9
|
+
handler = nil
|
10
|
+
append_line = nil
|
11
|
+
|
12
|
+
injected_gems = false
|
13
|
+
|
14
|
+
ignore_line = lambda do |line|
|
15
|
+
if line.include? Softwear::Lib::GEMFILE_CLOSER
|
16
|
+
gemfile << line
|
17
|
+
handler = append_line
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
append_line = lambda do |line|
|
22
|
+
gemfile << line
|
23
|
+
if line.include? Softwear::Lib::GEMFILE_OPENER
|
24
|
+
puts "Updating common gems"
|
25
|
+
gemfile << Softwear::Lib::COMMON_GEMS
|
26
|
+
injected_gems = true
|
27
|
+
handler = ignore_line
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
handler = append_line
|
32
|
+
old_gemfile.each_line do |line|
|
33
|
+
handler.call(line)
|
34
|
+
end
|
35
|
+
|
36
|
+
unless injected_gems
|
37
|
+
puts "Adding common gems - check for duplicates!"
|
38
|
+
gemfile << "\n" + Softwear::Lib::GEMFILE_OPENER + "\n"
|
39
|
+
gemfile << Softwear::Lib::COMMON_GEMS
|
40
|
+
gemfile << Softwear::Lib::GEMFILE_CLOSER + "\n"
|
41
|
+
end
|
42
|
+
|
43
|
+
File.open('Gemfile', 'w') do |file|
|
44
|
+
gemfile.each do |line|
|
45
|
+
file.write(line)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
puts "Done!"
|
49
|
+
else
|
50
|
+
puts "Run `softwear update` to update your gemfile's common dependencies"
|
51
|
+
end
|
data/lib/softwear/lib/version.rb
CHANGED
data/lib/softwear/lib.rb
CHANGED
@@ -3,62 +3,63 @@ require "softwear/lib/spec"
|
|
3
3
|
|
4
4
|
module Softwear
|
5
5
|
module Lib
|
6
|
-
|
7
|
-
|
8
|
-
gem 'rails', '~> 4.2.3'
|
9
|
-
|
10
|
-
gem 'softwear-lib'
|
11
|
-
gem 'mysql2'
|
12
|
-
gem 'sass-rails'
|
13
|
-
gem 'uglifier', '>= 1.3.0'
|
14
|
-
gem 'coffee-rails', '~> 4.0.0'
|
15
|
-
gem 'bootstrap-sass', '~> 3.2.0'
|
16
|
-
gem 'activeresource'
|
17
|
-
gem 'jquery-rails'
|
18
|
-
gem 'jquery-ui-rails'
|
19
|
-
gem 'hirb'
|
20
|
-
gem 'momentjs-rails', '~> 2.9.0'
|
21
|
-
gem 'bootstrap3-datetimepicker-rails', '4.7.14'
|
22
|
-
gem 'js-routes'
|
23
|
-
gem 'inherited_resources'
|
24
|
-
gem 'devise'
|
25
|
-
gem 'figaro'
|
26
|
-
gem 'paranoia', '~> 2.0'
|
27
|
-
gem 'paperclip'
|
28
|
-
gem 'kaminari'
|
29
|
-
gem 'whenever'
|
30
|
-
gem 'dumpsync', git: 'git://github.com/AnnArborTees/dumpsync.git'
|
31
|
-
gem 'bootstrap_form'
|
32
|
-
gem 'acts_as_warnable', git: 'git://github.com/AnnArborTees/acts_as_warnable.git'
|
33
|
-
|
34
|
-
group :development do
|
35
|
-
gem 'capistrano', '~> 3.2.0'
|
36
|
-
gem 'capistrano-rails'
|
37
|
-
gem 'capistrano-rvm', github: 'AnnArborTees/rvm'
|
38
|
-
gem 'capistrano-bundler', github: 'AnnArborTees/bundler'
|
39
|
-
gem 'better_errors', '>= 0.3.2'
|
40
|
-
gem 'binding_of_caller'
|
41
|
-
end
|
6
|
+
GEMFILE_OPENER = "# === BEGIN SOFTWEAR LIB GEMS === #"
|
7
|
+
GEMFILE_CLOSER = "# === END SOFTWEAR LIB GEMS === #"
|
42
8
|
|
43
|
-
group :development, :test do
|
44
|
-
gem 'byebug', platforms: :mri
|
45
|
-
gem 'rubinius-debugger', platforms: :rbx
|
46
|
-
end
|
47
9
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
10
|
+
COMMON_GEMS = %(
|
11
|
+
gem 'rails', '~> 4.2.3'
|
12
|
+
|
13
|
+
gem 'mysql2'
|
14
|
+
gem 'sass-rails'
|
15
|
+
gem 'uglifier', '>= 1.3.0'
|
16
|
+
gem 'coffee-rails', '~> 4.0.0'
|
17
|
+
gem 'bootstrap-sass', '~> 3.2.0'
|
18
|
+
gem 'activeresource'
|
19
|
+
gem 'jquery-rails'
|
20
|
+
gem 'jquery-ui-rails'
|
21
|
+
gem 'hirb'
|
22
|
+
gem 'momentjs-rails', '~> 2.9.0'
|
23
|
+
gem 'bootstrap3-datetimepicker-rails', '4.7.14'
|
24
|
+
gem 'js-routes'
|
25
|
+
gem 'inherited_resources'
|
26
|
+
gem 'devise'
|
27
|
+
gem 'figaro'
|
28
|
+
gem 'paranoia', '~> 2.0'
|
29
|
+
gem 'paperclip'
|
30
|
+
gem 'kaminari'
|
31
|
+
gem 'whenever'
|
32
|
+
gem 'dumpsync', git: 'git://github.com/AnnArborTees/dumpsync.git'
|
33
|
+
gem 'bootstrap_form'
|
34
|
+
gem 'acts_as_warnable', git: 'git://github.com/AnnArborTees/acts_as_warnable.git'
|
35
|
+
|
36
|
+
group :development do
|
37
|
+
gem 'capistrano', '~> 3.2.0'
|
38
|
+
gem 'capistrano-rails'
|
39
|
+
gem 'capistrano-rvm', github: 'AnnArborTees/rvm'
|
40
|
+
gem 'capistrano-bundler', github: 'AnnArborTees/bundler'
|
41
|
+
gem 'better_errors', '>= 0.3.2'
|
42
|
+
gem 'binding_of_caller'
|
43
|
+
end
|
44
|
+
|
45
|
+
group :development, :test do
|
46
|
+
gem 'byebug', platforms: :mri
|
47
|
+
gem 'rubinius-debugger', platforms: :rbx
|
48
|
+
end
|
49
|
+
|
50
|
+
group :test do
|
51
|
+
gem "rspec-rails", "~> 3.2.0"
|
52
|
+
gem 'factory_girl_rails', '>= 4.2.0', require: true
|
53
|
+
gem 'capybara', '~> 2.4'
|
54
|
+
gem 'capybara-webkit'
|
55
|
+
gem 'webmock', require: false
|
56
|
+
gem 'rspec-mocks'
|
57
|
+
gem 'rspec-retry'
|
58
|
+
gem 'email_spec'
|
59
|
+
gem 'selenium-webdriver'
|
60
|
+
gem 'shoulda-matchers'
|
61
|
+
end
|
62
|
+
)
|
62
63
|
|
63
64
|
def self.capistrano(context)
|
64
65
|
context.instance_eval do
|
@@ -73,7 +74,7 @@ module Softwear
|
|
73
74
|
on roles(:app), in: :sequence do
|
74
75
|
execute "gem install -i #{gem_home_1} --no-ri --no-rdoc softwear-lib"
|
75
76
|
execute "gem install -i #{gem_home_2} --no-ri --no-rdoc softwear-lib"
|
76
|
-
execute "gem install --no-ri --no-rdoc softwear-lib"
|
77
|
+
execute "~/.rvm/bin/rvm #{ruby} do gem install --no-ri --no-rdoc softwear-lib"
|
77
78
|
end
|
78
79
|
end
|
79
80
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: softwear-lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nigel Baillie
|
@@ -69,7 +69,8 @@ dependencies:
|
|
69
69
|
description:
|
70
70
|
email:
|
71
71
|
- nigel@annarbortees.com
|
72
|
-
executables:
|
72
|
+
executables:
|
73
|
+
- softwear
|
73
74
|
extensions: []
|
74
75
|
extra_rdoc_files: []
|
75
76
|
files:
|
@@ -79,6 +80,7 @@ files:
|
|
79
80
|
- LICENSE.txt
|
80
81
|
- README.md
|
81
82
|
- Rakefile
|
83
|
+
- bin/softwear
|
82
84
|
- lib/softwear/lib.rb
|
83
85
|
- lib/softwear/lib/spec.rb
|
84
86
|
- lib/softwear/lib/version.rb
|