alula-plugins 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -15,3 +15,6 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ */.DS_Store
19
+
20
+ .DS_Store
data/Rakefile CHANGED
@@ -1,2 +1,6 @@
1
1
  #!/usr/bin/env rake
2
2
  require "bundler/gem_tasks"
3
+
4
+ # Versioning
5
+ require 'rake/version_task'
6
+ Rake::VersionTask.new
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
@@ -15,5 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Alula::Plugins::VERSION
17
17
 
18
- gem.add_dependency 'alula'
18
+ gem.add_dependency 'alula', '~> 0.1.0'
19
+
20
+ gem.add_development_dependency 'version', '~> 1.0.0'
19
21
  end
@@ -12,12 +12,12 @@ module Alula
12
12
  end
13
13
 
14
14
  def initialize(tag_name, markup, tokens)
15
- /(?<src>(?:https?:\/\/|\/|\S+\/)\S+)(?<title>\s+.+)/ =~ markup
15
+ /(?<src>(?:https?:\/\/|\/|\S+\/)\S+)(?<title>\s+.+)?/ =~ markup
16
16
  /(?:"|')(?<title>[^"']+)?(?:"|')\s+(?:"|')(?<alt>[^"']+)?(?:"|')/ =~ title
17
17
 
18
18
  @name = src
19
- @title = title
20
- @alt = alt
19
+ @title = title || ""
20
+ @alt = alt || ""
21
21
  end
22
22
 
23
23
  def render(context)
@@ -1,5 +1,5 @@
1
1
  module Alula
2
2
  module Plugins
3
- VERSION = "0.0.1"
3
+ VERSION = File.read(File.join(File.dirname(__FILE__), %w{.. .. .. VERSION})).strip
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alula-plugins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,15 +13,26 @@ date: 2012-04-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: alula
16
- requirement: &70142059595480 !ruby/object:Gem::Requirement
16
+ requirement: &70244073815760 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: 0.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70142059595480
24
+ version_requirements: *70244073815760
25
+ - !ruby/object:Gem::Dependency
26
+ name: version
27
+ requirement: &70244073815140 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 1.0.0
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: *70244073815140
25
36
  description: Plugins for Alula blog
26
37
  email:
27
38
  - mikko@owlforestry.com
@@ -34,17 +45,16 @@ files:
34
45
  - LICENSE
35
46
  - README.md
36
47
  - Rakefile
48
+ - VERSION
37
49
  - alula-plugins.gemspec
38
50
  - lib/alula/plugins.rb
39
51
  - lib/alula/plugins/lightbox.rb
40
52
  - lib/alula/plugins/version.rb
41
53
  - plugins/.DS_Store
42
- - plugins/lightbox/.DS_Store
43
54
  - plugins/lightbox/javascripts/.DS_Store
44
55
  - plugins/lightbox/javascripts/jquery.fancybox.js
45
56
  - plugins/lightbox/javascripts/lightbox.js.coffee
46
57
  - plugins/lightbox/javascripts/lightbox_body.js
47
- - plugins/lightbox/stylesheets/.DS_Store
48
58
  - plugins/lightbox/stylesheets/jquery.fancybox.css
49
59
  - plugins/lightbox/stylesheets/lightbox.css
50
60
  homepage: ''
Binary file
Binary file