framework_identificator 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -20,14 +20,15 @@ Or install it yourself as:
20
20
 
21
21
  ### With a Pathname object
22
22
 
23
+ require "pathname"
23
24
  FrameworkIdentificator.from(Pathname.new(File.join("projects", "my_project")))
24
- => Frameworks::Rails
25
+ => #<Frameworks::Rails:0x007fddec3c1028 @source="/Users/zedtux/projects/my_project", @project_name="MyProject">
25
26
 
26
27
  ### With a Git object
27
28
 
28
29
  require "git"
29
30
  FrameworkIdentificator.from(Git.clone("git@myhost.tld:my_project", "my_project"))
30
- => Frameworks::Rails
31
+ => #<Frameworks::Rails:0x007fddec3aff30 @source="/Users/zedtux/projects/my_project", @project_name="MyProject">
31
32
 
32
33
  ## Implemented
33
34
 
@@ -1,3 +1,3 @@
1
1
  module FrameworkIdentificator
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
@@ -6,7 +6,7 @@ Dir[File.join(File.dirname(__FILE__), "framework_identificator", "frameworks", "
6
6
 
7
7
  module FrameworkIdentificator
8
8
  def self.from(source)
9
- raise ArgumentError unless source.is_a?(Pathname) || source.is_a?(Git::Base)
9
+ raise ArgumentError unless source.class.name == "Pathname" || source.class.name == "Git::Base"
10
10
 
11
11
  # Use source itself if Pathname otherwise fetch the Git dir path
12
12
  source = source.is_a?(Git::Base) ? source.dir.path : source
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: framework_identificator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -53,7 +53,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
53
53
  version: '0'
54
54
  segments:
55
55
  - 0
56
- hash: -1867397364544472375
56
+ hash: -3623145746065042830
57
57
  required_rubygems_version: !ruby/object:Gem::Requirement
58
58
  none: false
59
59
  requirements:
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  version: '0'
63
63
  segments:
64
64
  - 0
65
- hash: -1867397364544472375
65
+ hash: -3623145746065042830
66
66
  requirements: []
67
67
  rubyforge_project:
68
68
  rubygems_version: 1.8.24