texstyles 0.0.1 → 0.0.2

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: af86fb29e8abe30c4a36f53dc06866ec2abc6c45
4
- data.tar.gz: 4f58d3d01e55390a1011c3797b48586391d4ba3d
3
+ metadata.gz: 8f07c14f9ad05008b0dd23481c853253607b4654
4
+ data.tar.gz: 0f355705a06b27c303eb1f3e4660fe3b522cdbaa
5
5
  SHA512:
6
- metadata.gz: 7aaad64327eb4df90626cfa16a7b0cdfce8fed63f7025ac61f863497ef34d98ba0246dd06fe6df6604496571d05666358f43e601311dedf823e6267fbf490689
7
- data.tar.gz: a7377de0d170f784ee4da9cf18ddbc81f204285b8de2441c6864cf206de986b7a3870eb07fac2128c7f00772f97a42b310d8fd045ac868a67c2acb013e3151bd
6
+ metadata.gz: 34f061ca3b159fec54e4dae31e544695151bfd55057c2e48deedd0d7793ca4182b259e3cba0b2280bc13150a6b4153cf4b7d0cf916574a7fcdf91b349e3307a1
7
+ data.tar.gz: 6afda5cefc0599ed263bda80f5eb4fd0f82991b8d545eb6c316ebbf966a177677ea94338d2acc79c9b18087738e422cce6de02103e10f692321a67ebf3df42e1
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # TeX Styles
2
2
 
3
- ** CAUTION: This repository is in a pre-alpha dev sprint, consider it completely unstable until a 0.1.0 release **
3
+ A collection of ERB-based TeX/LaTeX preamble styles, for the world of scholarly writing and beyond. Founded and maintained by the [Authorea](www.authorea.com) team.
4
+
5
+ **CAUTION: This repository is in a pre-alpha dev sprint, consider it completely unstable until a 0.1.0 release**
4
6
 
5
7
  [![Build Status](https://secure.travis-ci.org/Authorea/texstyles.png?branch=master)](https://travis-ci.org/Authorea/texstyles)
6
8
  [![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/authorea/texstyles/master/LICENSE)
@@ -3,9 +3,11 @@ require 'yaml'
3
3
 
4
4
  module Texstyles
5
5
  class Style
6
+ attr_accessor :symbol
6
7
 
7
- def initialize(symbol='authorea')
8
- style_filename = symbol + '.tex.erb'
8
+ def initialize(symbol=:authorea)
9
+ @symbol = symbol.to_sym
10
+ style_filename = "#{@symbol}.tex.erb"
9
11
  style_filepath = File.join(Texstyles.root, 'styles', style_filename)
10
12
  @erb = if File.exist? style_filepath
11
13
  ERB.new(File.read(style_filepath))
@@ -13,7 +15,7 @@ module Texstyles
13
15
  nil
14
16
  end
15
17
 
16
- spec_filename = symbol + '.yml'
18
+ spec_filename = "#{@symbol}.yml"
17
19
  spec_filepath = File.join(Texstyles.root, 'spec', spec_filename)
18
20
  @spec = if File.exist? spec_filepath
19
21
  YAML.load_file(spec_filepath)
@@ -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.1"
4
+ spec.version = "0.0.2"
5
5
 
6
6
  spec.authors = ["Deyan Ginev"]
7
7
  spec.email = ["deyan@authorea.com"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: texstyles
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deyan Ginev