brice 0.4.2 → 0.5.0.pre1

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
- SHA256:
3
- metadata.gz: 36999aee54c54f1de81d06593f1038074c2b9726c8201752cb692ba28c33a411
4
- data.tar.gz: 6dd8b2419fc5e1f0a3192ba5fb3273c1ab9c66f1136d12e27865f4ba0e8104db
2
+ SHA1:
3
+ metadata.gz: 0131d57065d290aa68cb4ea09fce3ae465a4bbac
4
+ data.tar.gz: 4c4adb74bc58c015a6826a520cce22f32aeb32f2
5
5
  SHA512:
6
- metadata.gz: 9d00c57bd13955221544ae079b8fe8f62553419544c716f1492fab2a3850fe4d8a5f92716b9ab5adfecc9c37b78c3716d02ad40c5d438d709e3c71a3408c3670
7
- data.tar.gz: 10ab3f892e919a92a29b32e5c4d2064bb3045ea375adfe74648642dbd35af9c0ac9101a754ec31285ca4aa26a1fc3caa766a0c74b5af3a1b1fa46206b1b21afe
6
+ metadata.gz: 9f8f6ee04fdac97c20c0fd1dca42870f75c0a9963b43a742525a17063cd39f26e7e8c1ebf587fc16dfc511473d6eafb15f3d9f3f6ae30dc795969298f26f397b
7
+ data.tar.gz: 4998ca866946d82861784bde62e51a7734095eb817fe4d0598739951f61e25afc2776808455c6dc42ff901287cce90c2cec4dc3173d7722d77e0919496d61c84
data/ChangeLog CHANGED
@@ -2,16 +2,6 @@
2
2
 
3
3
  = Revision history for brice
4
4
 
5
- == 0.4.2 [2020-09-17]
6
-
7
- * Ruby 2.7 compatibility.
8
-
9
- == 0.4.1 [2016-03-29]
10
-
11
- * To mark default packages as optional, use underscore in addition to question
12
- mark, since the latter is not supported on Windows file systems (issue #10
13
- by Hovis Biddle).
14
-
15
5
  == 0.4.0 [2014-10-31]
16
6
 
17
7
  * Require at least Ruby 1.9.3.
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to brice version 0.4.2
5
+ This documentation refers to brice version 0.4.0
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -75,7 +75,7 @@ Travis CI:: https://travis-ci.org/blackwinter/brice
75
75
 
76
76
  == LICENSE AND COPYRIGHT
77
77
 
78
- Copyright (C) 2008-2020 Jens Wille
78
+ Copyright (C) 2008-2014 Jens Wille
79
79
 
80
80
  brice is free software: you can redistribute it and/or modify it under the
81
81
  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: { nuggets: '~> 1.6' },
15
+ dependencies: %w[nuggets],
16
16
 
17
17
  required_ruby_version: '>= 1.9.3'
18
18
  }
@@ -3,7 +3,7 @@
3
3
  # #
4
4
  # brice -- Extra cool IRb goodness for the masses #
5
5
  # #
6
- # Copyright (C) 2008-2016 Jens Wille #
6
+ # Copyright (C) 2008-2014 Jens Wille #
7
7
  # #
8
8
  # Authors: #
9
9
  # Jens Wille <jens.wille@gmail.com> #
@@ -48,7 +48,7 @@ module Brice
48
48
 
49
49
  # call-seq:
50
50
  # Brice.init { |config| ... }
51
- # Brice.init(verbose: true) { |config| ... }
51
+ # Brice.init(:verbose => true) { |config| ... }
52
52
  #
53
53
  # Initialize Brice and optionally configure any packages.
54
54
  def init(options = {})
@@ -61,7 +61,7 @@ module Brice
61
61
 
62
62
  packages = rc_files(true).map { |rc|
63
63
  File.basename(rc, '.rb').sub(/\A\d+_/, '')
64
- }.reject { |rc| rc.end_with?('?') || rc.end_with?('_') }
64
+ }.reject { |rc| rc.end_with?('?') }
65
65
 
66
66
  warn "Default packages: #{packages.join(', ')}" if verbose
67
67
 
@@ -28,9 +28,9 @@ module Brice
28
28
 
29
29
  # Add colour support to IRb.
30
30
  #
31
- # Set your own colours with <tt>config.colours.opt = { colours: { ... } }</tt>
31
+ # Set your own colours with <tt>config.colours.opt = { :colours => { ... } }</tt>
32
32
  # or modify the default scheme (DEFAULT_COLOURS) with <tt>config.colours.opt =
33
- # { colours: Brice::Colours::DEFAULT_COLOURS.merge(...) }</tt>.
33
+ # { :colours => Brice::Colours::DEFAULT_COLOURS.merge(...) }</tt>.
34
34
 
35
35
  module Colours
36
36
 
@@ -333,6 +333,7 @@ module Brice
333
333
 
334
334
  attr_reader :block
335
335
 
336
+ # FIXME: GSL::Matrix[[1]]
336
337
  def tokenize(str)
337
338
  return if str.empty?
338
339
  return if enc_event(str)
@@ -43,11 +43,11 @@ module Brice
43
43
  class History
44
44
 
45
45
  DEFAULTS = {
46
- path: ENV['IRB_HISTORY_FILE'] || File.join(ENV.user_home, '.irb_history'),
47
- size: (ENV['IRB_HISTORY_SIZE'] || 1000).to_i,
48
- perms: File::WRONLY | File::CREAT | File::TRUNC,
49
- uniq: :reverse,
50
- merge: true
46
+ :path => ENV['IRB_HISTORY_FILE'] || File.join(ENV.user_home, '.irb_history'),
47
+ :size => (ENV['IRB_HISTORY_SIZE'] || 1000).to_i,
48
+ :perms => File::WRONLY | File::CREAT | File::TRUNC,
49
+ :uniq => :reverse,
50
+ :merge => true
51
51
  }
52
52
 
53
53
  def self.init(opt = {})
@@ -2,8 +2,6 @@
2
2
 
3
3
  brice 'init' => nil do |config|
4
4
 
5
- IRB.conf[:AUTO_INDENT] = true
6
- IRB.conf[:ECHO_ON_ASSIGNMENT] = true
7
- IRB.conf[:USE_MULTILINE] = false
5
+ IRB.conf[:AUTO_INDENT] = true
8
6
 
9
7
  end
@@ -17,8 +17,8 @@ brice 'prompt' => nil do |config|
17
17
  alias_method :_brice_original_evaluate, :evaluate
18
18
 
19
19
  # Capture execution time
20
- def evaluate(*a, **o)
21
- @_brice_tms = Benchmark.measure { _brice_original_evaluate(*a, **o) }
20
+ def evaluate(*a)
21
+ @_brice_tms = Benchmark.measure { _brice_original_evaluate(*a) }
22
22
  end
23
23
  end
24
24
  end
@@ -39,17 +39,17 @@ brice 'prompt' => nil do |config|
39
39
  lambda { |rt| "#{rt} => %s\n" } : "=> %s\n"
40
40
 
41
41
  IRB.conf[:PROMPT].update(
42
- BRICE_SIMPLE: {
43
- PROMPT_I: ' ',
44
- PROMPT_S: ' ',
45
- PROMPT_C: ' ',
46
- RETURN: prompt_return
42
+ :BRICE_SIMPLE => {
43
+ :PROMPT_I => ' ',
44
+ :PROMPT_S => ' ',
45
+ :PROMPT_C => ' ',
46
+ :RETURN => prompt_return
47
47
  },
48
- BRICE_VERBOSE: {
49
- PROMPT_I: "#{prefix}> ",
50
- PROMPT_S: "#{prefix}> ",
51
- PROMPT_C: "#{prefix}> ",
52
- RETURN: prompt_return
48
+ :BRICE_VERBOSE => {
49
+ :PROMPT_I => "#{prefix}> ",
50
+ :PROMPT_S => "#{prefix}> ",
51
+ :PROMPT_C => "#{prefix}> ",
52
+ :RETURN => prompt_return
53
53
  }
54
54
  )
55
55
 
@@ -24,10 +24,10 @@ brice 'rails' => nil do |config|
24
24
  IRB.conf[:PROMPT] ||= {}
25
25
 
26
26
  IRB.conf[:PROMPT][:BRICE_RAILS] = {
27
- PROMPT_I: prompt,
28
- PROMPT_S: prompt,
29
- PROMPT_C: prompt,
30
- RETURN: IRB.conf[:PROMPT][:BRICE_SIMPLE] ?
27
+ :PROMPT_I => prompt,
28
+ :PROMPT_S => prompt,
29
+ :PROMPT_C => prompt,
30
+ :RETURN => IRB.conf[:PROMPT][:BRICE_SIMPLE] ?
31
31
  IRB.conf[:PROMPT][:BRICE_SIMPLE][:RETURN] : "=> %s\n"
32
32
  }
33
33
 
@@ -40,7 +40,7 @@ brice 'rails' => nil do |config|
40
40
  Object.const_set(:RAILS_DEFAULT_LOGGER, Logger.new(STDOUT))
41
41
  }
42
42
 
43
- define_irb_method(:logger) { |*args, &block|
43
+ define_irb_method(:logger) { |*args|
44
44
  if args.empty?
45
45
  RAILS_DEFAULT_LOGGER
46
46
  else
@@ -51,7 +51,7 @@ brice 'rails' => nil do |config|
51
51
 
52
52
  if block_given?
53
53
  begin
54
- block.call
54
+ yield # RDoc: Warning: yield outside of method
55
55
  ensure
56
56
  logger.level = previous_level
57
57
  end
@@ -39,8 +39,8 @@ module Brice
39
39
 
40
40
  # Convenient shortcut methods.
41
41
  #
42
- # Set <tt>config.shortcuts.opt = { object: false }</tt> to disable
43
- # ObjectShortcuts, or <tt>config.shortcuts.opt = { ri: false }</tt>
42
+ # Set <tt>config.shortcuts.opt = { :object => false }</tt> to disable
43
+ # ObjectShortcuts, or <tt>config.shortcuts.opt = { :ri => false }</tt>
44
44
  # to disable #ri shortcuts.
45
45
 
46
46
  module Shortcuts
@@ -3,14 +3,14 @@ module Brice
3
3
  module Version
4
4
 
5
5
  MAJOR = 0
6
- MINOR = 4
7
- TINY = 2
6
+ MINOR = 5
7
+ TINY = 0
8
8
 
9
9
  class << self
10
10
 
11
11
  # Returns array representation.
12
12
  def to_a
13
- [MAJOR, MINOR, TINY]
13
+ [MAJOR, MINOR, TINY] << 'pre1'
14
14
  end
15
15
 
16
16
  # Short-cut for version string.
metadata CHANGED
@@ -1,49 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.0.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Wille
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-17 00:00:00.000000000 Z
11
+ date: 2014-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nuggets
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.6'
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: '1.6'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: hen
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.9'
33
+ version: '0.8'
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 0.9.1
36
+ version: 0.8.1
37
37
  type: :development
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - "~>"
42
42
  - !ruby/object:Gem::Version
43
- version: '0.9'
43
+ version: '0.8'
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 0.9.1
46
+ version: 0.8.1
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -93,10 +93,10 @@ files:
93
93
  - lib/brice/history.rb
94
94
  - lib/brice/init.rb
95
95
  - lib/brice/loud.rb
96
- - lib/brice/rc/010_added_methods_.rb
96
+ - lib/brice/rc/010_added_methods?.rb
97
97
  - lib/brice/rc/020_libs.rb
98
98
  - lib/brice/rc/030_history.rb
99
- - lib/brice/rc/040_colours_.rb
99
+ - lib/brice/rc/040_colours.rb
100
100
  - lib/brice/rc/050_shortcuts.rb
101
101
  - lib/brice/rc/060_init.rb
102
102
  - lib/brice/rc/070_prompt.rb
@@ -111,15 +111,10 @@ homepage: http://github.com/blackwinter/brice
111
111
  licenses:
112
112
  - AGPL-3.0
113
113
  metadata: {}
114
- post_install_message: |2+
115
-
116
- brice-0.4.2 [2020-09-17]:
117
-
118
- * Ruby 2.7 compatibility.
119
-
114
+ post_install_message:
120
115
  rdoc_options:
121
116
  - "--title"
122
- - brice Application documentation (v0.4.2)
117
+ - brice Application documentation (v0.5.0.pre1)
123
118
  - "--charset"
124
119
  - UTF-8
125
120
  - "--line-numbers"
@@ -135,11 +130,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
130
  version: 1.9.3
136
131
  required_rubygems_version: !ruby/object:Gem::Requirement
137
132
  requirements:
138
- - - ">="
133
+ - - ">"
139
134
  - !ruby/object:Gem::Version
140
- version: '0'
135
+ version: 1.3.1
141
136
  requirements: []
142
- rubygems_version: 3.1.2
137
+ rubyforge_project:
138
+ rubygems_version: 2.4.5
143
139
  signing_key:
144
140
  specification_version: 4
145
141
  summary: Extra cool IRb goodness for the masses