swing 0.0.3 → 0.0.5

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.
data/.gitignore CHANGED
@@ -18,6 +18,7 @@ coverage
18
18
  rdoc
19
19
  pkg
20
20
  log
21
+ .iml
21
22
  .idea
22
23
  .bundle
23
24
 
data/HISTORY CHANGED
@@ -13,3 +13,11 @@
13
13
  == 0.0.3 / 2011-05-21
14
14
 
15
15
  * Getting rid of extra namespace
16
+
17
+ == 0.0.4 / 2011-05-24
18
+
19
+ * Fixed bug that prevented setting attributes to false
20
+
21
+ == 0.0.5 / 2011-05-24
22
+
23
+ * Ignoring IDEA module info
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.5
@@ -64,7 +64,7 @@ module AttrSetter
64
64
  else # Return either non-nil value or default
65
65
  value.nil? ? default : value
66
66
  end
67
- [name, result] if result
67
+ [name, result] unless result.nil?
68
68
  end.compact
69
69
  yield opts if block_given?
70
70
  attributes.each { |(name, value)| send "#{name}=", *value }
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ describe Swing::Button do
4
+ it 'is possible to set :enabled attribute to false' do
5
+ button = Swing::Button.new 'Disconnect', :enabled => false
6
+ button.should_not be_enabled
7
+ end
8
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,10 +1,10 @@
1
- require 'swing'
2
1
  require 'pathname'
3
-
4
2
  require 'bundler'
5
3
  Bundler.setup
6
4
  Bundler.require :test
7
5
 
6
+ require 'swing'
7
+
8
8
  BASE_PATH = Pathname.new(__FILE__).dirname + '..'
9
9
 
10
10
  RSpec.configure do |config|
@@ -15,7 +15,3 @@ RSpec.configure do |config|
15
15
  # config.mock_with :flexmock
16
16
  # config.mock_with :rr
17
17
  end
18
-
19
- module SwingTest
20
-
21
- end # module SwingTest
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: swing
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - arvicco
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-21 00:00:00 +04:00
13
+ date: 2011-05-24 00:00:00 +04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -66,6 +66,7 @@ files:
66
66
  - lib/swing/scroll_pane.rb
67
67
  - lib/swing/split_pane.rb
68
68
  - lib/swing/table.rb
69
+ - spec/button_spec.rb
69
70
  - spec/spec_helper.rb
70
71
  - spec/swing_spec.rb
71
72
  - features/swing.feature
@@ -118,5 +119,6 @@ signing_key:
118
119
  specification_version: 3
119
120
  summary: Straightforward wrappers for javax.swing Components
120
121
  test_files:
122
+ - spec/button_spec.rb
121
123
  - spec/spec_helper.rb
122
124
  - spec/swing_spec.rb