new_class 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,9 @@
1
1
  = NewClass CHANGELOG
2
2
 
3
+ == Version 0.1.2 (January 25, 2012)
4
+
5
+ * Not defining instance methods within InstanceMethods module as ActiveSupport does not include it automatically anymore since v3.2.0
6
+
3
7
  == Version 0.1.1 (November 23, 2011)
4
8
 
5
9
  * Fixed bug: not defining method within method_missing anymore
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Paul Engel
1
+ Copyright (c) 2012 Paul Engel
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,6 +1,6 @@
1
1
  h1. NewClass
2
2
 
3
- Define variable dependent classes without using class_eval
3
+ Define variable dependent classes without evalling
4
4
 
5
5
  h2. Introduction
6
6
 
@@ -19,7 +19,7 @@ Some of the methods (such as @eval@, @class_eval@ and @instance_eval@) are often
19
19
 
20
20
  h3. Dynamic CarrierWave uploader classes
21
21
 
22
- In my case, I had to define "CarrierWave":https://github.com/jnicklas/carrierwave uploader classes dynamically as they are dependent of certain variables. Choosing not to use @class_eval@ for this task, I have created the @NewClass@ gem to accomplish this.
22
+ In my case, I had to define "CarrierWave":https://github.com/jnicklas/carrierwave uploader classes dynamically as they are dependent of certain variables. Choosing not to use @instance_eval@ for this task, I have created the @NewClass@ gem to accomplish this.
23
23
 
24
24
  Instead of defining a CarrierWave uploader class with something like this:
25
25
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -30,10 +30,9 @@ module NewClass
30
30
  end
31
31
  alias :to_s :name
32
32
  end
33
- module InstanceMethods
34
- def _variables
35
- self.class._variables
36
- end
33
+
34
+ def _variables
35
+ self.class._variables
37
36
  end
38
37
  end
39
38
 
@@ -1,7 +1,7 @@
1
1
  module NewClass
2
2
  MAJOR = 0
3
3
  MINOR = 1
4
- TINY = 1
4
+ TINY = 2
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
@@ -4,8 +4,8 @@ require File.expand_path("../lib/new_class/version", __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Paul Engel"]
6
6
  gem.email = ["paul.engel@holder.nl"]
7
- gem.description = %q{Define variable dependent classes without using class_eval}
8
- gem.summary = %q{Define variable dependent classes without using class_eval}
7
+ gem.description = %q{Define variable dependent classes without evalling}
8
+ gem.summary = %q{Define variable dependent classes without evalling}
9
9
  gem.homepage = "https://github.com/archan937/new_class"
10
10
 
11
11
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,39 +1,34 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: new_class
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
4
5
  prerelease:
5
- version: 0.1.1
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Paul Engel
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-11-23 00:00:00 +01:00
14
- default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
12
+ date: 2012-01-25 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
17
15
  name: activesupport
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &2156589740 !ruby/object:Gem::Requirement
20
17
  none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
24
21
  version: 3.0.0
25
22
  type: :runtime
26
- version_requirements: *id001
27
- description: Define variable dependent classes without using class_eval
28
- email:
23
+ prerelease: false
24
+ version_requirements: *2156589740
25
+ description: Define variable dependent classes without evalling
26
+ email:
29
27
  - paul.engel@holder.nl
30
28
  executables: []
31
-
32
29
  extensions: []
33
-
34
30
  extra_rdoc_files: []
35
-
36
- files:
31
+ files:
37
32
  - .gitignore
38
33
  - CHANGELOG.rdoc
39
34
  - Gemfile
@@ -50,35 +45,31 @@ files:
50
45
  - test/class_test.rb
51
46
  - test/new_class_test.rb
52
47
  - test/test_helper.rb
53
- has_rdoc: true
54
48
  homepage: https://github.com/archan937/new_class
55
49
  licenses: []
56
-
57
50
  post_install_message:
58
51
  rdoc_options: []
59
-
60
- require_paths:
52
+ require_paths:
61
53
  - lib
62
- required_ruby_version: !ruby/object:Gem::Requirement
54
+ required_ruby_version: !ruby/object:Gem::Requirement
63
55
  none: false
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- version: "0"
68
- required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
61
  none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
74
66
  requirements: []
75
-
76
67
  rubyforge_project:
77
- rubygems_version: 1.6.2
68
+ rubygems_version: 1.8.10
78
69
  signing_key:
79
70
  specification_version: 3
80
- summary: Define variable dependent classes without using class_eval
81
- test_files:
71
+ summary: Define variable dependent classes without evalling
72
+ test_files:
82
73
  - test/carrierwave_test.rb
83
74
  - test/carrierwave_test/archan937.png
84
75
  - test/class_test.rb