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 +4 -4
- data/.rubocop.yml +0 -1
- data/CHANGELOG.md +6 -0
- data/Gemfile +0 -1
- data/{LICENSE.txt → MIT-LICENSE} +1 -1
- data/README.md +1 -1
- data/Rakefile +0 -6
- data/lib/space2underscore/version.rb +1 -1
- data/lib/space2underscore.rb +1 -1
- data/space2underscore.gemspec +3 -3
- data/spec/space2underscore_spec.rb +7 -3
- data/spec/spec_helper.rb +0 -13
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb322f523081337eca3ea59a3203c05286227a92
|
4
|
+
data.tar.gz: 4df307124bce05b5c37ef177d610ad141a56c8fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c8b477aa22dc20bc691528bbe5fe1c163c1f74ea972b6565a54f6d73f2eea1eade9900e9c6c9144c197e40914224675afff26bd0fafc1e9bb586fbde1b2258d
|
7
|
+
data.tar.gz: 9b48c4491eb713d377b34f4c38d0e02e81d7067dccb219539bcd3089c27ad78f4200a44639948da514dcbd875c356327330c8c373d166d6809105361ed7f2bbf
|
data/.rubocop.yml
CHANGED
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
data/{LICENSE.txt → MIT-LICENSE}
RENAMED
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'
|
data/lib/space2underscore.rb
CHANGED
data/space2underscore.gemspec
CHANGED
@@ -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 = '
|
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
|
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
|
-
|
17
|
+
execute_command('git checkout master')
|
18
18
|
end
|
19
19
|
|
20
20
|
def delete_branch
|
21
|
-
|
21
|
+
execute_command("git branch -D #{branch_name}")
|
22
22
|
end
|
23
23
|
|
24
24
|
def create_branch
|
25
|
-
|
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.
|
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
|
+
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
|
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:
|
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
|
123
|
+
=> Switched to a new branch 'new_branch’
|
124
124
|
|
125
125
|
Or
|
126
126
|
|