texstyles 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9be62b7996c31c41165d3e4ac1fa877db9e27077
4
- data.tar.gz: b10580e3752e659673d865c338320c5c0c3ef7aa
3
+ metadata.gz: af3e3deabd660123e8b2154bcc817a9a1d266fb3
4
+ data.tar.gz: 4201682bc96013a17a76ca60d8f8762c7879672d
5
5
  SHA512:
6
- metadata.gz: 976a16446b9b3225285af8e6bf424de453846e47bae5caa1ef1607388f9acbdd828c6af20d36a312732fef267cc1fb1387f5b6a6f7f81b499ed2b639aa8e1a37
7
- data.tar.gz: b4d5341fe591d4e65a172ec95a2d6be6fc71adf67b4d374d66ae746727eaeca11fdcc4daf58101a8214fe6feaf41540eda6ef4a121bd9e08f06989a0195a538b
6
+ metadata.gz: 0efece0ce021f1bb622e6a801ffdcb7f841f86450e59cbad12effff59e6850c1749df852bf44b8eec5ff71410ad126b44eebcaf978d24b1559a8f1cba58ef23d
7
+ data.tar.gz: 49da68f33818582882814d49222db923e29776cdfac0a8564431ea495e384745946777f10cba6d9f3844879a366efdeb243be412ebdb0deb18e80d3f53080799
@@ -67,16 +67,18 @@ module Texstyles
67
67
  @erb && @erb.result(binding)
68
68
  end
69
69
 
70
- def name
71
- @meta['name']
70
+ def package_compatible?(package_name)
71
+ @all_compatible || (!@none_compatible && (@meta_default_packages[package_name] != false))
72
72
  end
73
73
 
74
- def category
75
- @meta['category']
74
+ # Missing methods are assumed to be @meta getters
75
+ def method_missing(method_sym, *arguments, &block)
76
+ @meta[method_sym.to_s]
76
77
  end
77
78
 
78
- def package_compatible?(package_name)
79
- @all_compatible || (!@none_compatible && (@meta_default_packages[package_name] != false))
79
+ # We can respond to any method, since we're indexing into @meta
80
+ def self.respond_to?(method_sym, include_private = false)
81
+ true
80
82
  end
81
83
 
82
84
  end
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "texstyles"
4
- spec.version = "0.0.8"
4
+ spec.version = "0.0.9"
5
5
 
6
6
  spec.authors = ["Deyan Ginev"]
7
7
  spec.email = ["deyan@authorea.com"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: texstyles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deyan Ginev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-31 00:00:00.000000000 Z
11
+ date: 2016-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: escape_utils