brice 0.2.9 → 0.3.0

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: 885478fbc0d9052c5841ac0a0143a8bcce3f16bc
4
- data.tar.gz: 4564112b3c7fb10d311559e808f903801550c2e0
3
+ metadata.gz: 14d6f3cec45a0b45cb608322cde05228cc240695
4
+ data.tar.gz: e91c0741caaf6184197a24229c05f78ff8250b61
5
5
  SHA512:
6
- metadata.gz: 498b83eff27af0ed8ecb885c0aa09ae61cd825200634619d74e731198a356ee5af8a084577ffc62d1cc20da39927fb4fb2454bc491c2b171f334d725097051db
7
- data.tar.gz: 4421144f7e8999361bf4ab7ce25af2e5562ddbd914aa573a8d5ab7730bc86ffc6c7bad68040de9c150a3b9ef87dc28398479a4a523a5aafa8be1f4ba929821d2
6
+ metadata.gz: cebb5bd7516dc856accae7f1609bcf56008c5fce7faabf207238182e02a45c640965b1468e014031d65dfff6ecc71ce84c3bf35507d4af270a26fb70659232a6
7
+ data.tar.gz: 5ad2d699bd528635b643fd055a8feb2030bda369bcbcfc32c5a6c2e5237aa023cdfbeb4d2841086556a2e6bb9196c5ba86c84b39d8ce213851f7466da598a31d
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to brice version 0.2.9
5
+ This documentation refers to brice version 0.3.0
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -64,10 +64,9 @@ guaranteed to have any effect after <tt>Brice.init</tt> has been called.
64
64
 
65
65
  == LINKS
66
66
 
67
- <b></b>
68
- Documentation:: http://blackwinter.github.com/brice
69
- Source code:: http://github.com/blackwinter/brice
70
- RubyGem:: http://rubygems.org/gems/brice
67
+ Documentation:: https://blackwinter.github.com/brice
68
+ Source code:: https://github.com/blackwinter/brice
69
+ RubyGem:: https://rubygems.org/gems/brice
71
70
 
72
71
 
73
72
  == AUTHORS
@@ -77,7 +76,7 @@ RubyGem:: http://rubygems.org/gems/brice
77
76
 
78
77
  == LICENSE AND COPYRIGHT
79
78
 
80
- Copyright (C) 2008-2013 Jens Wille
79
+ Copyright (C) 2008-2014 Jens Wille
81
80
 
82
81
  brice is free software: you can redistribute it and/or modify it under the
83
82
  terms of the GNU Affero General Public License as published by the Free
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ begin
12
12
  :email => %q{jens.wille@gmail.com},
13
13
  :license => %q{AGPL-3.0},
14
14
  :homepage => :blackwinter,
15
- :dependencies => [['ruby-nuggets', '>= 0.5.2']]
15
+ :dependencies => %w[nuggets]
16
16
  }
17
17
  }}
18
18
  rescue LoadError => err
data/lib/brice.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  # #
4
4
  # brice -- Extra cool IRb goodness for the masses #
5
5
  # #
6
- # Copyright (C) 2008-2013 Jens Wille #
6
+ # Copyright (C) 2008-2014 Jens Wille #
7
7
  # #
8
8
  # Authors: #
9
9
  # Jens Wille <jens.wille@gmail.com> #
@@ -88,7 +88,7 @@ module Brice
88
88
  if config.is_a?(Config)
89
89
  @config = config
90
90
  else
91
- raise TypeError, "expected Brice::Config, got #{config.class}"
91
+ raise TypeError, "Brice::Config expected, got #{config.class}"
92
92
  end
93
93
  end
94
94
 
@@ -127,7 +127,7 @@ module Brice
127
127
  # Returns the value of +opt+ at +key+ if present, or +default+
128
128
  # otherwise.
129
129
  def opt(opt, key, default = true)
130
- opt.is_a?(Hash) && opt.has_key?(key) ? opt[key] : default
130
+ opt.is_a?(Hash) && opt.key?(key) ? opt[key] : default
131
131
  end
132
132
 
133
133
  private
@@ -145,7 +145,7 @@ module Brice
145
145
  brice_load rc
146
146
  }
147
147
 
148
- include_custom_extensions ? res += load_custom_extensions : res
148
+ include_custom_extensions ? res + load_custom_extensions : res
149
149
  end
150
150
 
151
151
  # call-seq:
@@ -164,7 +164,7 @@ module Brice
164
164
  #
165
165
  # Find the actual extension files in +dir+.
166
166
  def find_rc_files(dir = RC_DIR)
167
- File.directory?(dir) ? Dir["#{dir}/*.rb"].sort : []
167
+ File.directory?(dir) ? Dir["#{dir}/**/*.rb"].sort : []
168
168
  end
169
169
 
170
170
  # call-seq:
data/lib/brice/colours.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  # #
4
4
  # A component of brice, the extra cool IRb goodness donator #
5
5
  # #
6
- # Copyright (C) 2008-2012 Jens Wille #
6
+ # Copyright (C) 2008-2014 Jens Wille #
7
7
  # #
8
8
  # Authors: #
9
9
  # Jens Wille <jens.wille@gmail.com> #
@@ -254,7 +254,7 @@ module Brice
254
254
 
255
255
  # Return the escape code for a given colour.
256
256
  def escape(key)
257
- "\033[#{COLOURS[key]}m" if COLOURS.has_key?(key)
257
+ "\033[#{COLOURS[key]}m" if COLOURS.key?(key)
258
258
  end
259
259
 
260
260
  alias_method :[], :escape
data/lib/brice/config.rb CHANGED
@@ -3,7 +3,7 @@
3
3
  # #
4
4
  # A component of brice, the extra cool IRb goodness donator #
5
5
  # #
6
- # Copyright (C) 2008-2011 Jens Wille #
6
+ # Copyright (C) 2008-2014 Jens Wille #
7
7
  # #
8
8
  # Authors: #
9
9
  # Jens Wille <jens.wille@gmail.com> #
@@ -62,7 +62,7 @@ module Brice
62
62
 
63
63
  def initialize(packages = [])
64
64
  @packages = Hash.new { |h, k| h[k] = PackageConfig.new }
65
- packages.each { |package| self[package] }
65
+ self.include(*packages)
66
66
  end
67
67
 
68
68
  # call-seq:
data/lib/brice/version.rb CHANGED
@@ -3,8 +3,8 @@ module Brice
3
3
  module Version
4
4
 
5
5
  MAJOR = 0
6
- MINOR = 2
7
- TINY = 9
6
+ MINOR = 3
7
+ TINY = 0
8
8
 
9
9
  class << self
10
10
 
data/spec/spec_helper.rb CHANGED
@@ -3,6 +3,8 @@ $:.unshift('lib') unless $:.first == 'lib'
3
3
  require 'tempfile'
4
4
 
5
5
  RSpec.configure { |config|
6
+ config.expect_with(:rspec) { |c| c.syntax = [:should, :expect] }
7
+
6
8
  config.before(:each) { open_tempfile }
7
9
  config.after(:each) { close_tempfile }
8
10
 
metadata CHANGED
@@ -1,29 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Wille
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-19 00:00:00.000000000 Z
11
+ date: 2014-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: ruby-nuggets
14
+ name: nuggets
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.5.2
19
+ version: '0'
20
20
  type: :runtime
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.5.2
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: hen
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
27
69
  description: Extra cool IRb goodness for the masses
28
70
  email: jens.wille@gmail.com
29
71
  executables: []
@@ -33,6 +75,11 @@ extra_rdoc_files:
33
75
  - COPYING
34
76
  - ChangeLog
35
77
  files:
78
+ - COPYING
79
+ - ChangeLog
80
+ - README
81
+ - Rakefile
82
+ - TODO
36
83
  - lib/brice.rb
37
84
  - lib/brice/colours.rb
38
85
  - lib/brice/config.rb
@@ -52,11 +99,6 @@ files:
52
99
  - lib/brice/really_loud.rb
53
100
  - lib/brice/shortcuts.rb
54
101
  - lib/brice/version.rb
55
- - COPYING
56
- - ChangeLog
57
- - README
58
- - Rakefile
59
- - TODO
60
102
  - spec/brice/history_spec.rb
61
103
  - spec/spec_helper.rb
62
104
  homepage: http://github.com/blackwinter/brice
@@ -66,7 +108,7 @@ metadata: {}
66
108
  post_install_message:
67
109
  rdoc_options:
68
110
  - "--title"
69
- - brice Application documentation (v0.2.9)
111
+ - brice Application documentation (v0.3.0)
70
112
  - "--charset"
71
113
  - UTF-8
72
114
  - "--line-numbers"
@@ -87,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
87
129
  version: '0'
88
130
  requirements: []
89
131
  rubyforge_project:
90
- rubygems_version: 2.1.11
132
+ rubygems_version: 2.3.0
91
133
  signing_key:
92
134
  specification_version: 4
93
135
  summary: Extra cool IRb goodness for the masses