magic 0.0.1 → 0.0.2
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/LICENSE +1 -1
- data/README.rdoc +2 -4
- data/VERSION +1 -1
- data/lib/magic.rb +2 -1
- data/lib/magic/api.rb +1 -1
- data/lib/magic/errors.rb +0 -1
- metadata +1 -2
- data/lib/magic/library.rb +0 -22
data/LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -6,10 +6,8 @@ Description goes here.
|
|
6
6
|
|
7
7
|
* Fork the project.
|
8
8
|
* Make your feature addition or bug fix.
|
9
|
-
* Add tests for it. This is important so I don't break it in a
|
10
|
-
|
11
|
-
* Commit, do not mess with rakefile, version, or history.
|
12
|
-
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
9
|
+
* Add tests for it. This is important so I don't break it in a future version unintentionally.
|
10
|
+
* Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
13
11
|
* Send me a pull request. Bonus points for topic branches.
|
14
12
|
|
15
13
|
== Copyright
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
data/lib/magic.rb
CHANGED
data/lib/magic/api.rb
CHANGED
data/lib/magic/errors.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: magic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Jakub Ku\xC5\xBAma"
|
@@ -53,7 +53,6 @@ files:
|
|
53
53
|
- lib/magic/constants.rb
|
54
54
|
- lib/magic/database.rb
|
55
55
|
- lib/magic/errors.rb
|
56
|
-
- lib/magic/library.rb
|
57
56
|
- test/helper.rb
|
58
57
|
- test/test_magic.rb
|
59
58
|
has_rdoc: true
|
data/lib/magic/library.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
module Magic
|
2
|
-
class Library
|
3
|
-
def initialize
|
4
|
-
name or raise UnsupportedPlatform, "platform #{platform} is unsupported"
|
5
|
-
end
|
6
|
-
|
7
|
-
def platform
|
8
|
-
RUBY_PLATFORM.downcase
|
9
|
-
end
|
10
|
-
|
11
|
-
def name
|
12
|
-
case platform
|
13
|
-
when /darwin/
|
14
|
-
"libmagic.1.dylib"
|
15
|
-
when /linux|freebsd|netbsd|openbsd|dragonfly|solaris/
|
16
|
-
"libmagic.so.1"
|
17
|
-
when /win|mingw/
|
18
|
-
"magic1.dll"
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|