lolcommits-tranzlate 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 65bb3ffab97d4765d68ec156baa820c73e597e3f
4
- data.tar.gz: 0160ab5613bd75c63ec46fbcd6ebaa5d4f06ab66
2
+ SHA256:
3
+ metadata.gz: 0ee8613b4b323220cd57e60c6dff19f3affd63ebd849d210bdd17c782aff3d91
4
+ data.tar.gz: 1a6e38d9389491b8088836f32769b698874939e4915ba9cfcb46b87356239ca6
5
5
  SHA512:
6
- metadata.gz: 1d1a7d3daa61d206ed1b29f5789430df058722f8e678a6b84798c2d8a8f31b46179e62307288ad49d467a5b1559450fe2ed24d8844675ccc4d1c9d55a7607083
7
- data.tar.gz: 35ea166773c09ef060568af2904084c6c907c1b7c3d234a2c77ebe157dcd9f02471cadc80c3743acb615252a3db683cf77253e9471447c0b21e5df7cb109a265
6
+ metadata.gz: 2ac48c8376a5d903ada4acf6e9ac1542213bd8c2a330450b5402daae585fbccc500132b082b4121b13a2c450faf55471bdf0f90a74e052ab9ea2037b041945ef
7
+ data.tar.gz: e02c67fa596b846badcc063d67ad01f151baf450f6867781665ea52b3e0a2bbad1619c54c1a3312d52486a884cb4d3867a7bc8491996af6fd8d2318d01c019f5
data/.travis.yml CHANGED
@@ -2,18 +2,19 @@ sudo: false
2
2
  language: ruby
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.0.0
6
- - 2.1.10
7
- - 2.2.8
8
- - 2.3.5
9
- - 2.4.2
10
- - ruby-head
5
+ - 2.0.0
6
+ - 2.1.10
7
+ - 2.2.9
8
+ - 2.3.6
9
+ - 2.4.3
10
+ - 2.5.0
11
+ - ruby-head
11
12
 
12
13
  before_install:
13
- - gem install bundler -v 1.13.7
14
- - git --version
15
- - git config --global user.email "lol@commits.org"
16
- - git config --global user.name "Lolcommits"
14
+ - gem update --system
15
+ - git --version
16
+ - git config --global user.email "lol@commits.org"
17
+ - git config --global user.name "Lolcommits"
17
18
 
18
19
  matrix:
19
20
  allow_failures:
@@ -6,15 +6,6 @@ module Lolcommits
6
6
  class Tranzlate < Base
7
7
  extend Lolcommits::Tranzlate::Lolspeak
8
8
 
9
- ##
10
- # Returns the name of the plugin. Identifies the plugin to lolcommits.
11
- #
12
- # @return [String] the plugin name
13
- #
14
- def self.name
15
- 'tranzlate'
16
- end
17
-
18
9
  # Returns position(s) of when this plugin should run during the capture
19
10
  # process.
20
11
  #
@@ -1,5 +1,5 @@
1
1
  module Lolcommits
2
2
  module Tranzlate
3
- VERSION = "0.0.5".freeze
3
+ VERSION = "0.0.6".freeze
4
4
  end
5
5
  end
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
 
32
32
  spec.required_ruby_version = ">= 2.0.0"
33
33
 
34
- spec.add_development_dependency "lolcommits", ">= 0.9.5"
34
+ spec.add_development_dependency "lolcommits", ">= 0.10.0"
35
35
  spec.add_development_dependency "bundler"
36
36
  spec.add_development_dependency "rake"
37
37
  spec.add_development_dependency "minitest"
@@ -5,48 +5,26 @@ describe Lolcommits::Plugin::Tranzlate do
5
5
  include Lolcommits::TestHelpers::GitRepo
6
6
  include Lolcommits::TestHelpers::FakeIO
7
7
 
8
- it 'should have a name' do
9
- ::Lolcommits::Plugin::Tranzlate.name.must_equal 'tranzlate'
10
- end
11
-
12
8
  it 'should run on post capturing' do
13
9
  ::Lolcommits::Plugin::Tranzlate.runner_order.must_equal [:pre_capture]
14
10
  end
15
11
 
16
12
  describe 'with a runner' do
17
13
  def runner
18
- # a simple lolcommits runner with an empty configuration Hash
19
- @runner ||= Lolcommits::Runner.new(
20
- config: OpenStruct.new(read_configuration: {})
21
- )
14
+ @runner ||= Lolcommits::Runner.new
22
15
  end
23
16
 
24
17
  def plugin
25
18
  @plugin ||= Lolcommits::Plugin::Tranzlate.new(runner: runner)
26
19
  end
27
20
 
28
- def valid_enabled_config
29
- @config ||= OpenStruct.new(
30
- read_configuration: {
31
- plugin.class.name => { 'enabled' => true }
32
- }
33
- )
34
- end
35
-
36
- describe 'initalizing' do
37
- it 'should assign runner and an enabled option' do
38
- plugin.runner.must_equal runner
39
- plugin.options.must_equal ['enabled']
40
- end
41
- end
42
-
43
21
  describe '#enabled?' do
44
22
  it 'should be false by default' do
45
- plugin.enabled?.must_equal false
23
+ assert_nil plugin.enabled?
46
24
  end
47
25
 
48
26
  it 'should true when configured' do
49
- plugin.config = valid_enabled_config
27
+ plugin.configuration = { enabled: true }
50
28
  plugin.enabled?.must_equal true
51
29
  end
52
30
  end
data/test/test_helper.rb CHANGED
@@ -1,10 +1,7 @@
1
1
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
2
 
3
- # necessary libs from lolcommits (allowing plugin to run)
4
- require 'git'
5
- require 'lolcommits/runner'
6
- require 'lolcommits/vcs_info'
7
- require 'lolcommits/backends/git_info'
3
+ # lolcommits gem
4
+ require 'lolcommits'
8
5
 
9
6
  # lolcommit test helpers
10
7
  require 'lolcommits/test_helpers/git_repo'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lolcommits-tranzlate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Hutchinson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-06 00:00:00.000000000 Z
11
+ date: 2018-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lolcommits
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.5
19
+ version: 0.10.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 0.9.5
26
+ version: 0.10.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  requirements: []
128
128
  rubyforge_project:
129
- rubygems_version: 2.6.13
129
+ rubygems_version: 2.7.3
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: lolcommits lolspekk tranzlation plugin