turbulence 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,8 +3,8 @@ source "http://rubygems.org"
3
3
  # Specify your gem's dependencies in turbulence.gemspec
4
4
  gemspec
5
5
 
6
- gem 'flog'
7
- gem 'json'
6
+ gem 'flog', "= 2.5.0"
7
+ gem 'json', "= 1.4.6"
8
8
  gem 'launchy', '~> 0.4.0'
9
9
 
10
10
  group :development, :test do
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- turbulence (0.0.3)
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
@@ -1,2 +1,9 @@
1
1
  require 'bundler'
2
2
  Bundler::GemHelper.install_tasks
3
+ require 'rake'
4
+ require 'rspec/core/rake_task'
5
+ RSpec::Core::RakeTask.new(:spec) do |t|
6
+ t.skip_bundler = true
7
+ end
8
+
9
+ task :default => [:spec]
@@ -3,7 +3,7 @@ require 'launchy'
3
3
 
4
4
  class Turbulence
5
5
  class CommandLineInterface
6
- TURBULENCE_PATH = File.join(File.absolute_path(File.dirname(__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")
@@ -1,3 +1,3 @@
1
1
  class Turbulence
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -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
@@ -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.9.2'
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
- - 5
9
- version: 0.0.5
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
- - 9
117
- - 2
118
- version: 1.9.2
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