turbulence 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.
- data/Gemfile +2 -2
- data/Gemfile.lock +3 -3
- data/Rakefile +7 -0
- data/lib/turbulence/command_line_interface.rb +2 -1
- data/lib/turbulence/version.rb +1 -1
- data/spec/turbulence/command_line_interface_spec.rb +16 -0
- data/turbulence.gemspec +1 -1
- metadata +7 -5
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
turbulence (0.0.
|
4
|
+
turbulence (0.0.5)
|
5
5
|
flog (= 2.5.0)
|
6
6
|
json (= 1.4.6)
|
7
7
|
launchy (~> 0.4.0)
|
@@ -35,8 +35,8 @@ PLATFORMS
|
|
35
35
|
ruby
|
36
36
|
|
37
37
|
DEPENDENCIES
|
38
|
-
flog
|
39
|
-
json
|
38
|
+
flog (= 2.5.0)
|
39
|
+
json (= 1.4.6)
|
40
40
|
launchy (~> 0.4.0)
|
41
41
|
rspec
|
42
42
|
turbulence!
|
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'launchy'
|
|
3
3
|
|
4
4
|
class Turbulence
|
5
5
|
class CommandLineInterface
|
6
|
-
TURBULENCE_PATH = File.join(File.
|
6
|
+
TURBULENCE_PATH = File.join(File.expand_path(File.dirname(__FILE__)), "..", "..")
|
7
7
|
|
8
8
|
attr_reader :directory
|
9
9
|
def initialize(directory)
|
@@ -19,6 +19,7 @@ class Turbulence
|
|
19
19
|
FileUtils.cp path_to_template(filename), directory
|
20
20
|
end
|
21
21
|
end
|
22
|
+
private :copy_templates_into
|
22
23
|
|
23
24
|
def generate_bundle
|
24
25
|
FileUtils.mkdir_p("turbulence")
|
data/lib/turbulence/version.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'turbulence'
|
2
|
+
|
3
|
+
describe Turbulence::CommandLineInterface do
|
4
|
+
let(:cli) { Turbulence::CommandLineInterface.new('.') }
|
5
|
+
describe "#path_to_template" do
|
6
|
+
it "returns a path" do
|
7
|
+
cli.path_to_template('file').should eq(Turbulence::CommandLineInterface::TURBULENCE_PATH + '/template/file')
|
8
|
+
end
|
9
|
+
end
|
10
|
+
describe "#generate_bundle" do
|
11
|
+
it "bundles the files" do
|
12
|
+
cli.generate_bundle
|
13
|
+
Dir.glob('turbulence/*').should eq(["turbulence/cc.js", "turbulence/highcharts.js", "turbulence/jquery.min.js", "turbulence/turbulence.html"])
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/turbulence.gemspec
CHANGED
@@ -22,5 +22,5 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
23
23
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
24
24
|
s.require_paths = ["lib"]
|
25
|
-
s.required_ruby_version = '>= 1.
|
25
|
+
s.required_ruby_version = '>= 1.8.7'
|
26
26
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 6
|
9
|
+
version: 0.0.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Chad Fowler
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- lib/turbulence/version.rb
|
93
93
|
- spec/turbulence/calculators/churn_spec.rb
|
94
94
|
- spec/turbulence/calculators/complexity_spec.rb
|
95
|
+
- spec/turbulence/command_line_interface_spec.rb
|
95
96
|
- template/highchart_template.js.erb
|
96
97
|
- template/highcharts.js
|
97
98
|
- template/jquery.min.js
|
@@ -113,9 +114,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
113
114
|
- !ruby/object:Gem::Version
|
114
115
|
segments:
|
115
116
|
- 1
|
116
|
-
-
|
117
|
-
-
|
118
|
-
version: 1.
|
117
|
+
- 8
|
118
|
+
- 7
|
119
|
+
version: 1.8.7
|
119
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
121
|
none: false
|
121
122
|
requirements:
|
@@ -134,3 +135,4 @@ summary: Automates churn + flog scoring on a git repo for a Ruby project
|
|
134
135
|
test_files:
|
135
136
|
- spec/turbulence/calculators/churn_spec.rb
|
136
137
|
- spec/turbulence/calculators/complexity_spec.rb
|
138
|
+
- spec/turbulence/command_line_interface_spec.rb
|