pjam 0.0.6.pre → 0.0.7.pre

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.
Files changed (2) hide show
  1. data/bin/pjam +33 -27
  2. metadata +17 -1
data/bin/pjam CHANGED
@@ -41,6 +41,30 @@ end
41
41
 
42
42
  config = JSON.parse(File.read("#{project_id}/pjam.json"))
43
43
 
44
+ misc_modules = []
45
+
46
+ if config.has_key? 'modules' and opts[:no_misc] == false
47
+
48
+ if opts[:no_color] == true
49
+ puts "pulling / compiling misc modules"
50
+ else
51
+ puts dark { blue { bold { "pulling / compiling misc modules" } } }
52
+ end
53
+
54
+ config['modules'].each do |m|
55
+
56
+ if opts[:no_color] == true
57
+ puts "pull #{m}"
58
+ else
59
+ puts dark { magenta { bold { "pull #{m}" } } }
60
+ end
61
+ cmd ="pinto pull -s #{config['stack']} -v #{m} #{color_flag}"
62
+ system(cmd) == true or raise "failed do cmd: #{cmd}"
63
+
64
+ misc_modules << m
65
+
66
+ end
67
+ end
44
68
 
45
69
  sources_list = []
46
70
  if opts[:only].nil?
@@ -91,47 +115,29 @@ sources_list.each do |src|
91
115
  end
92
116
 
93
117
 
94
- compile_list.each do |d|
118
+ misc_modules.each do |m|
95
119
 
96
120
  if opts[:no_color] == true
97
- puts "compile #{compile_list_pp[d]} [#{d}]"
121
+ puts "compile #{m}"
98
122
  else
99
- puts green { bold { "compile #{compile_list_pp[d]} [#{d}]" } }
123
+ puts green { bold { "compile #{m}" } }
100
124
  end
101
125
 
102
- cmd = "pinto install -s #{config['stack']} -l #{local_lib} -o 'q' PINTO/#{d} #{color_flag}"
126
+ cmd = "pinto install -s #{config['stack']} -l #{local_lib} -o 'q' #{m} #{color_flag}"
103
127
  system(cmd) == true or raise "failed do cmd: #{cmd}"
104
128
  end
105
129
 
106
130
 
107
- if config.has_key? 'modules' && opts[:no_misc] == false
131
+ compile_list.each do |d|
108
132
 
109
133
  if opts[:no_color] == true
110
- puts "pulling / compiling misc modules"
134
+ puts "compile #{compile_list_pp[d]} [#{d}]"
111
135
  else
112
- puts dark { blue { bold { "pulling / compiling misc modules" } } }
136
+ puts green { bold { "compile #{compile_list_pp[d]} [#{d}]" } }
113
137
  end
114
138
 
115
- config['modules'].each do |m|
116
-
117
- if opts[:no_color] == true
118
- puts "pull #{m}"
119
- else
120
- puts dark { magenta { bold { "pull #{m}" } } }
121
- end
122
- cmd ="pinto pull -s #{config['stack']} -v #{m} #{color_flag}"
123
- system(cmd) == true or raise "failed do cmd: #{cmd}"
124
-
125
- if opts[:no_color] == true
126
- puts "compile #{m}"
127
- else
128
- puts dark { green { bold { "compile #{m}" } } }
129
- end
130
-
131
- cmd = "pinto install -s #{config['stack']} -l #{local_lib} -o 'q' #{m} #{color_flag}"
132
- system(cmd) == true or raise "failed do cmd: #{cmd}"
133
-
134
- end
139
+ cmd = "pinto install -s #{config['stack']} -l #{local_lib} -o 'q' PINTO/#{d} #{color_flag}"
140
+ system(cmd) == true or raise "failed do cmd: #{cmd}"
135
141
  end
136
142
 
137
143
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pjam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6.pre
4
+ version: 0.0.7.pre
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -75,6 +75,22 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: sinatra-contrib
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :runtime
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
78
94
  description: Smart pinto glue - jam between source code and pinto
79
95
  email: melezhik@gmail.com
80
96
  executables: