slim-attributes 0.7.6 → 0.7.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +10 -10
  2. data/VERSION.yml +1 -1
  3. data/ext/extconf.rb +1 -1
  4. metadata +16 -4
data/README CHANGED
@@ -11,15 +11,16 @@ Measuring with just ActiveRecord code - fetching stuff from the database - we se
11
11
  Installation
12
12
  ============
13
13
 
14
- Slim attributes works with ruby 1.8.x. Ruby 1.9 support exists, but a bug in rails prevents it working (see Bugs for further info).
14
+ Slim attributes works with Rails and Ruby 1.8.x. Ruby 1.9 is also supported with Rails version 2.3.5 and above.
15
15
 
16
16
  Try:
17
- sudo gem install slim-attributes
17
+ sudo gem install slim-attributes
18
18
  or:
19
- sudo gem install slim-attributes -- --with-mysql-config
19
+ sudo gem install slim-attributes -- --with-mysql-config
20
20
 
21
- then add this to environment.rb:
22
- require 'slim_attributes'
21
+ then add this to environment.rb in the Rails::Initializer.run section:
22
+
23
+ config.gem 'slim-attributes'
23
24
 
24
25
 
25
26
  Description
@@ -39,8 +40,7 @@ The field contents are then instantiated into Ruby strings on demand - ruby stri
39
40
  Bugs
40
41
  ====
41
42
 
42
- Slim attributes will not work correctly with rails and ruby 1.9.1 until Rails 2.3.5 is released due to this ticket:
43
- https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/3156-mysql_adapterrb-redefines-all_hashes-multiple-times-under-ruby-19
43
+ Slim attributes will not work correctly with ruby 1.9.x with versions lower than Rails 2.3.5
44
44
 
45
45
 
46
46
  Warranty
@@ -55,7 +55,7 @@ Credits
55
55
  =======
56
56
 
57
57
  Thanks to IronDigital for the initial port for ruby 1.9.
58
- Thanks to Greg Hazel for fixing compilation for windows.
59
-
58
+ Thanks to Greg Hazel (ghazel) for fixing compilation for windows.
59
+ Thanks to Nando Vieira (fnando) for adding slim-attributes.rb to avoid the underscore dash confusion.
60
60
 
61
- Copyright (c) 2008-2009 Stephen Sykes, released under the MIT license
61
+ Copyright (c) 2008-2010 Stephen Sykes, released under the MIT license
@@ -1,5 +1,5 @@
1
1
  ---
2
- :patch: 6
2
+ :patch: 7
3
3
  :major: 0
4
4
  :minor: 7
5
5
  :build:
@@ -18,7 +18,7 @@ def default_mysql_config_path
18
18
  mysql_config_paths.compact.first
19
19
  end
20
20
 
21
- if /mswin32/ =~ RUBY_PLATFORM
21
+ if RUBY_PLATFORM =~ /mswin|mingw/
22
22
  inc, lib = dir_config('mysql')
23
23
  exit 1 unless have_library("libmysql")
24
24
  elsif mc = with_config('mysql-config', default_mysql_config_path) then
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slim-attributes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ hash: 13
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 7
9
+ - 7
10
+ version: 0.7.7
5
11
  platform: ruby
6
12
  authors:
7
13
  - Stephen Sykes
@@ -47,21 +53,27 @@ rdoc_options:
47
53
  require_paths:
48
54
  - lib
49
55
  required_ruby_version: !ruby/object:Gem::Requirement
56
+ none: false
50
57
  requirements:
51
58
  - - ">="
52
59
  - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
53
63
  version: "0"
54
- version:
55
64
  required_rubygems_version: !ruby/object:Gem::Requirement
65
+ none: false
56
66
  requirements:
57
67
  - - ">="
58
68
  - !ruby/object:Gem::Version
69
+ hash: 3
70
+ segments:
71
+ - 0
59
72
  version: "0"
60
- version:
61
73
  requirements: []
62
74
 
63
75
  rubyforge_project: slim-attributes
64
- rubygems_version: 1.3.5
76
+ rubygems_version: 1.3.7
65
77
  signing_key:
66
78
  specification_version: 3
67
79
  summary: Slim-attributes - lazy instantiation of attributes for ActiveRecord