space2underscore 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3846ccf345bdba7ac7d3438edff689aa28eb08c3
4
- data.tar.gz: 4eb7b8b678366b3df3626ebcfb48db1b8db5a001
3
+ metadata.gz: cb322f523081337eca3ea59a3203c05286227a92
4
+ data.tar.gz: 4df307124bce05b5c37ef177d610ad141a56c8fc
5
5
  SHA512:
6
- metadata.gz: e3f3ce641c0d7e9560a59de937c890e970f8bd96e432a00fe3e38c198688850def733e62f359e4be04647be959ac29b9afcc54ebc0880bf756460f2d52229a1a
7
- data.tar.gz: 37062762fd3f18a12c8897dee3063a5497efad06215acb1ecbb7dc417f09303ce262168ea3aa7a32d98548bb14a1293eb2951e6b0c86f0d4c31ec51152ba0402
6
+ metadata.gz: 4c8b477aa22dc20bc691528bbe5fe1c163c1f74ea972b6565a54f6d73f2eea1eade9900e9c6c9144c197e40914224675afff26bd0fafc1e9bb586fbde1b2258d
7
+ data.tar.gz: 9b48c4491eb713d377b34f4c38d0e02e81d7067dccb219539bcd3089c27ad78f4200a44639948da514dcbd875c356327330c8c373d166d6809105361ed7f2bbf
data/.rubocop.yml CHANGED
@@ -1,7 +1,6 @@
1
1
  AllCops:
2
2
  Exclude:
3
3
  - 'vendor/**/*'
4
- - 'spec/fixtures/**/*'
5
4
 
6
5
  Style/Encoding:
7
6
  Enabled: true
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change log
2
2
 
3
+ ## v0.3.9
4
+ - Do not use SimpleCov.
5
+ - license file is renamed from LICENSE.txt to MIT-LICENSE.
6
+ - Author is changed from nickname to full name.
7
+ - Use secure connection in gemspec for space2underscore.
8
+
3
9
  ## v0.3.8
4
10
  - Refactored for hiding command results.
5
11
  - Added a task for the RSpec and SimpleCov.
data/Gemfile CHANGED
@@ -5,4 +5,3 @@ source 'https://rubygems.org'
5
5
  gemspec
6
6
 
7
7
  gem 'coveralls', '0.8.3', require: false
8
- gem 'simplecov', require: false
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 sachin21
1
+ Copyright (c) 2014 Satoshi Ohmori
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Space2underscore
2
2
 
3
- ![Gem Version](https://badge.fury.io/rb/space2underscore.svg) [![Build Status](https://travis-ci.org/sachin21/space2underscore.svg?branch=master)](https://travis-ci.org/sachin21/space2underscore) [![Code Climate](https://codeclimate.com/github/sachin21/space2underscore/badges/gpa.svg)](https://codeclimate.com/github/sachin21/space2underscore) [![Coverage Status](https://coveralls.io/repos/sachin21/space2underscore/badge.svg?branch=master&service=github)](https://coveralls.io/github/sachin21/space2underscore?branch=master) [![Gem](https://img.shields.io/gem/dt/space2underscore.svg)]()
3
+ ![Gem Version](https://badge.fury.io/rb/space2underscore.svg) [![Build Status](https://travis-ci.org/sachin21/space2underscore.svg?branch=master)](https://travis-ci.org/sachin21/space2underscore) [![Code Climate](https://codeclimate.com/github/sachin21/space2underscore/badges/gpa.svg)](https://codeclimate.com/github/sachin21/space2underscore) [![Coverage Status](https://coveralls.io/repos/sachin21/space2underscore/badge.svg?branch=master&service=github)](https://coveralls.io/github/sachin21/space2underscore?branch=master) [![Gem](https://img.shields.io/gem/dt/space2underscore.svg)](https://rubygems.org/gems/space2underscore)
4
4
 
5
5
  ## What is space2underscore
6
6
  Change the space into underscore.
data/Rakefile CHANGED
@@ -8,12 +8,6 @@ RSpec::Core::RakeTask.new(:spec)
8
8
  task default: :spec
9
9
 
10
10
  namespace :spec do
11
- desc 'Run RSpec with SimpleCov'
12
- task :with_simplecov do
13
- ENV['SIMPLECOV'] = 'true'
14
- Rake::Task['spec'].execute
15
- end
16
-
17
11
  desc 'Run RSpec with Coveralls'
18
12
  task :with_coveralls do
19
13
  ENV['COVERALLS'] = 'true'
@@ -2,5 +2,5 @@
2
2
 
3
3
  # This module holds the Space2underscore version information.
4
4
  module Space2underscore
5
- VERSION = '0.3.8'
5
+ VERSION = '0.3.9'
6
6
  end
@@ -19,7 +19,7 @@ module Space2underscore
19
19
  #{Space2underscore::VERSION}
20
20
 
21
21
  OPTIONS:
22
- --create, -c create the new branch
22
+ --create, -c create a new branch
23
23
  EOF
24
24
 
25
25
  def self.convert(argv)
@@ -10,10 +10,10 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ['sachin21.developer@gmail.com']
11
11
  spec.description = 'Change the space into underscore'
12
12
  spec.summary = 'Change the space into underscore'
13
- spec.homepage = 'http://github.com/sachin21/space2underscore'
13
+ spec.homepage = 'https://github.com/sachin21/space2underscore'
14
14
  spec.license = 'MIT'
15
15
 
16
- spec.files = `git ls-files`.split($/)
16
+ spec.files = `git ls-files`.split($RS)
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  From the command line:
30
30
 
31
31
  $ s2u new branch -c
32
- => Switched to the new branch 'new_branch’
32
+ => Switched to a new branch 'new_branch’
33
33
 
34
34
  Or
35
35
 
@@ -14,15 +14,19 @@ describe Space2underscore do
14
14
  end
15
15
 
16
16
  def checkout_master
17
- system("git checkout master #{hidden}")
17
+ execute_command('git checkout master')
18
18
  end
19
19
 
20
20
  def delete_branch
21
- system("git branch -D #{branch_name} #{hidden}")
21
+ execute_command("git branch -D #{branch_name}")
22
22
  end
23
23
 
24
24
  def create_branch
25
- system("git branch #{branch_name} #{hidden}")
25
+ execute_command("git branch #{branch_name}")
26
+ end
27
+
28
+ def execute_command(command)
29
+ system("#{command} #{hidden}")
26
30
  end
27
31
 
28
32
  describe '.create_new_branch' do
data/spec/spec_helper.rb CHANGED
@@ -3,21 +3,8 @@
3
3
  require 'bundler/setup'
4
4
  require 'coveralls'
5
5
  require 'space2underscore'
6
- require 'simplecov'
7
6
 
8
7
  Coveralls.wear! if ENV['COVERALLS']
9
-
10
- if ENV['SIMPLECOV']
11
- SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
12
- SimpleCov::Formatter::HTMLFormatter,
13
- Coveralls::SimpleCov::Formatter
14
- ]
15
-
16
- SimpleCov.start do
17
- add_filter '/vendor/'
18
- end
19
- end
20
-
21
8
  Bundler.setup
22
9
 
23
10
  RSpec.configure do |config|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: space2underscore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - sachin21
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-13 00:00:00.000000000 Z
11
+ date: 2015-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -95,7 +95,7 @@ files:
95
95
  - ".travis.yml"
96
96
  - CHANGELOG.md
97
97
  - Gemfile
98
- - LICENSE.txt
98
+ - MIT-LICENSE
99
99
  - README.md
100
100
  - Rakefile
101
101
  - bin/s2u
@@ -105,7 +105,7 @@ files:
105
105
  - space2underscore.gemspec
106
106
  - spec/space2underscore_spec.rb
107
107
  - spec/spec_helper.rb
108
- homepage: http://github.com/sachin21/space2underscore
108
+ homepage: https://github.com/sachin21/space2underscore
109
109
  licenses:
110
110
  - MIT
111
111
  metadata: {}
@@ -120,7 +120,7 @@ post_install_message: |
120
120
  From the command line:
121
121
 
122
122
  $ s2u new branch -c
123
- => Switched to the new branch 'new_branch’
123
+ => Switched to a new branch 'new_branch’
124
124
 
125
125
  Or
126
126