locomotivecms_common 0.0.1 → 0.0.2

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
2
  SHA1:
3
- metadata.gz: 6dbfa3ad674f1d0afe144354bdbd6fef81b23b10
4
- data.tar.gz: 2e34e1e3df1a89fb78a5b3bc1ff704d8d948dfe1
3
+ metadata.gz: b653c8442e005fcdf0e7e49dd0ebf03d93b62af5
4
+ data.tar.gz: 94b56771d8759cbbc9eda08476f8823d55a6689d
5
5
  SHA512:
6
- metadata.gz: e7b8b82956afa6b02810f4f24bfec3e1cb6c1b0585f616d2d8e1f4dc4dc77c46c21e4b271342d051128f055f38e293874db9bcd86fb86b856e6f9bd338dbd3b5
7
- data.tar.gz: 7df648ebc689c963decd88034b07333ea53987edd756907d7d16eb1ae2f2d48c734dac82db2cfe6ce07eae9007d4f6479be42e1050fe28b0b2555398b35475e9
6
+ metadata.gz: 16d8e74ceb2fa4d930d992e50afe7db1bf3680b51c8176e4440966a38f3a3f595698ca70c0b2a6e9061ee99243d5c86fa2eddec22c2b5ab456fb9bf9ba6df220
7
+ data.tar.gz: f38624d72d1bef8fab06a4a0ad82968004d1e31bd87044c8cc36842acbc127603c128845c61f2760dd8ee87cbb7f62f90941fe4c338c55115d2523436798846a
data/.travis.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.0.0
4
- - 2.1.1
4
+ - 2.1.1
5
+ - jruby-19mode
data/Gemfile.lock CHANGED
@@ -1,11 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- locomotivecms_common (0.0.1)
4
+ locomotivecms_common (0.0.2)
5
+ colorize
5
6
 
6
7
  GEM
7
8
  remote: https://rubygems.org/
8
9
  specs:
10
+ colorize (0.7.3)
9
11
  diff-lcs (1.2.5)
10
12
  rake (10.2.2)
11
13
  rspec (2.14.1)
data/Rakefile CHANGED
@@ -5,11 +5,11 @@ require 'rake'
5
5
  require 'rspec'
6
6
  require 'rspec/core/rake_task'
7
7
 
8
- require_relative 'lib/common'
8
+ require_relative 'lib/locomotive/common'
9
9
 
10
10
  RSpec::Core::RakeTask.new('spec:all') do |spec|
11
11
  spec.pattern = 'spec/**/*_spec.rb'
12
12
  end
13
13
 
14
14
  task spec: ['spec:all']
15
- task default: :spec
15
+ task default: :spec
@@ -1,5 +1,3 @@
1
- require 'pry'
2
-
3
1
  module Locomotive
4
2
  module Common
5
3
 
@@ -1,3 +1,5 @@
1
+ require 'colorize'
2
+
1
3
  module Locomotive
2
4
  module Common
3
5
 
@@ -66,4 +68,4 @@ module Locomotive
66
68
  end
67
69
  end
68
70
  end
69
- end
71
+ end
@@ -1,5 +1,5 @@
1
1
  module Locomotive
2
2
  module Common
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
@@ -1,14 +1,8 @@
1
- require_relative 'locomotive/common/version'
2
- require_relative 'locomotive/common/logger'
3
- require_relative 'locomotive/common/exception'
4
- require_relative 'locomotive/common/notifier'
5
-
6
- require_relative 'locomotive/common/configuration'
7
-
8
- begin
9
- require 'pry'
10
- rescue LoadError
11
- end
1
+ require_relative 'common/version'
2
+ require_relative 'common/logger'
3
+ require_relative 'common/exception'
4
+ require_relative 'common/notifier'
5
+ require_relative 'common/configuration'
12
6
 
13
7
  module Locomotive
14
8
  module Common
@@ -28,4 +22,4 @@ module Locomotive
28
22
  yield(configuration)
29
23
  end
30
24
  end
31
- end
25
+ end
@@ -1,4 +1,4 @@
1
- require_relative 'lib/common'
1
+ require_relative 'lib/locomotive/common/version'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'locomotivecms_common'
@@ -20,5 +20,6 @@ Gem::Specification.new do |spec|
20
20
  spec.add_development_dependency 'rake', '~> 10.1'
21
21
  spec.add_development_dependency 'rspec', '~> 2.14'
22
22
 
23
+ spec.add_dependency 'colorize'
23
24
  spec.required_ruby_version = '~> 2.0'
24
25
  end
data/spec/spec_helper.rb CHANGED
@@ -1,9 +1,9 @@
1
1
  require 'rubygems'
2
2
  require 'bundler/setup'
3
3
 
4
- require_relative '../lib/common'
4
+ require_relative '../lib/locomotive/common'
5
5
 
6
6
  RSpec.configure do |config|
7
7
  config.filter_run focused: true
8
8
  config.run_all_when_everything_filtered = true
9
- end
9
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locomotivecms_common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Didier Lafforgue
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-04-14 00:00:00.000000000 Z
13
+ date: 2014-06-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -54,13 +54,26 @@ dependencies:
54
54
  - - "~>"
55
55
  - !ruby/object:Gem::Version
56
56
  version: '2.14'
57
+ - !ruby/object:Gem::Dependency
58
+ name: colorize
59
+ requirement: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ type: :runtime
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: '0'
57
71
  description: The LocomotiveCMS Common is a shared libraries package
58
72
  email:
59
73
  - did@locomotivecms.com
60
74
  - arnaud@sellenet.fr
61
75
  - joel.azemar@gmail.com
62
- executables:
63
- - publish
76
+ executables: []
64
77
  extensions: []
65
78
  extra_rdoc_files: []
66
79
  files:
@@ -71,14 +84,13 @@ files:
71
84
  - LICENSE.txt
72
85
  - README.md
73
86
  - Rakefile
74
- - bin/publish
75
- - lib/common.rb
87
+ - lib/locomotive/common.rb
76
88
  - lib/locomotive/common/configuration.rb
77
89
  - lib/locomotive/common/exception.rb
78
90
  - lib/locomotive/common/logger.rb
79
91
  - lib/locomotive/common/notifier.rb
92
+ - lib/locomotive/common/plugins/notifier.rb
80
93
  - lib/locomotive/common/version.rb
81
- - lib/plugins/notifier.rb
82
94
  - locomotivecms_common.gemspec
83
95
  - spec/locomotive/exception_spec.rb
84
96
  - spec/spec_helper.rb
@@ -102,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
114
  version: '0'
103
115
  requirements: []
104
116
  rubyforge_project:
105
- rubygems_version: 2.1.11
117
+ rubygems_version: 2.2.2
106
118
  signing_key:
107
119
  specification_version: 4
108
120
  summary: The LocomotiveCMS Common is a shared libraries package for all LocomotiveCMS
data/bin/publish DELETED
@@ -1,28 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require_relative '../lib/common'
4
-
5
- # bin/publish
6
-
7
- class Publish
8
-
9
- def start
10
- # if File.exists? '.ruby-version'
11
- # cmd = <<-CMD
12
- # rvm use `cat .ruby-version`@`cat .ruby-gemset` --create
13
- # CMD
14
- # system cmd
15
- # end
16
- # exit 1
17
-
18
- system "bundle && bundle exec rspec"
19
- system "gem build locomotivecms_common.gemspec"
20
- system "git tag -a v#{Locomotive::Common::VERSION} -m 'version #{Locomotive::Common::VERSION}'"
21
- system "git push --tags"
22
- system "gem push locomotivecms_common-#{Locomotive::Common::VERSION}.gem"
23
- system "git push origin master"
24
- end
25
-
26
- end
27
-
28
- Publish.new.start