These release notes cover new developer and user-facing incompatibilities, features, and major improvements.
Changed streaming tasks to adhere to task timeout value specified in the job configuration.
Modified HOD to include the RPC port of the JobTracker in the 'notes' attribute of the resource manager. The RPC port is included as the string 'Mapred RPC Port:<port number>'. Tools that depend on the value of the notes attribute must change to parse this new value.
Modified logcondense.py to use the new format of hadoop dfs -lsr output. This version of logcondense would not work with previous versions of Hadoop and hence is incompatible.
Change FileListed to getNumGetListingOps and add CreateFileOps, DeleteFileOps and AddBlockOps metrics.
Simplify generation stamp upgrade by making is a local upgrade on datandodes. Deleted distributed upgrade.
WARNING: No release note provided for this incompatible change.
Modified HOD to automatically create a cluster directory if the one specified with the script command does not exist.
Changed Map-Reduce framework to no longer create temporary task output directories for staging outputs if staging outputs isn't necessary. ${mapred.out.dir}/_temporary/_${taskid}
Fixed KFS to have read() read and return 1 byte instead of 4.
Modifed HOD to generate the dfs.datanode.ipc.address parameter in the hadoop-site.xml of datanodes that it launches.
Separated Distcp, Logalyzer and Archiver into a tools jar.
Changed the default value of dfs.blockreport.initialDelay to be 0 seconds.
Modified HOD to create a cluster directory if one does not exist and to auto-deallocate a cluster while reallocating it, if it is already dead.
Implemented a mechanism to transfer HOD errors that occur on compute nodes to the submit node running the HOD client, so users have good feedback on why an allocation failed.
Created SequenceFileAsBinaryOutputFormat to write raw bytes as keys and values to a SequenceFile.
Changed the output of the "fs -ls" command to more closely match familiar Linux format. Applications that parse the command output should be reviewed.
Changed exit status of fsck to report whether the files system is healthy or corrupt.
Increased the size of the buffer used in the communication between the Java task and the Streaming process to 128KB.
Changed shuffle scheduler policy to wait for notifications from shuffle threads before scheduling more.
Removed the public class org.apache.hadoop.mapred.JobShell. Command line options -libjars, -files and -archives are moved to GenericCommands. Thus applications have to implement org.apache.hadoop.util.Tool to use the options.
Refactored previously public classes MapTaskStatus, ReduceTaskStatus, JobSubmissionProtocol, CompletedJobStatusStore to be package local.
Removed deprecated ClientProtocol.abandonFileInProgress().
Set default value for configuration property "stream.non.zero.exit.status.is.failure" to be "true".
Modified HOD client to look for specific messages related to resource limit overruns and take appropriate actions - such as either failing to allocate the cluster, or issuing a warning to the user. A tool is provided, specific to Maui and Torque, that will set these specific messages.
Improved shuffle so that all fetched map-outputs are kept in-memory before being merged by stalling the shuffle so that the in-memory merge executes and frees up memory for the shuffle.
Added support for hexadecimal values in Configuration
Improved failure handling of last Data Node in write pipeline.
Added a log4j appender that emits events from FSNamesystem for audit logging
Changed format of file system image to not store locations of last block.
Changed fetchOutputs() so that LocalFSMerger and InMemFSMergeThread threads are spawned only once. The thread gets notified when something is ready for merge. The merge happens when thresholds are met.
Changed the default port for "hdfs:" URIs to be 8020, so that one may simply use URIs of the form "hdfs://example.com/dir/file".
Implemented Lease Recovery to sync the last bock of a file. Added ClientDatanodeProtocol for client trigging block recovery. Changed DatanodeProtocol to support block synchronization. Changed InterDatanodeProtocol to support block update.
Introduced archive feature to Hadoop. A Map/Reduce job can be run to create an archive with indexes. A FileSystem abstraction is provided over the archive.
Changed the TextInputFormat and KeyValueTextInput classes to initialize the compressionCodecs member variable before dereferencing it.
Added an IPC server in DataNode and a new IPC protocol InterDatanodeProtocol. Added conf properties dfs.datanode.ipc.address and dfs.datanode.handler.count with defaults "<IP_ADDRESS>:50020" and 3, respectively. Changed the serialization in DatanodeRegistration and DatanodeInfo, and therefore, updated the versionID in ClientProtocol, DatanodeProtocol, NamenodeProtocol.
Removed deprecated API getFileCacheHints
Introduced an FTPFileSystem backed by Apache Commons FTPClient to directly store data into HDFS.
Changed 'du' command to run in a seperate thread so that it does not block user.
Added command line tool "job -counter <job-id> <group-name> <counter-name>" to access counters.
Changed policy for running combiner. The combiner may be run multiple times as the map's output is sorted and merged. Additionally, it may be run on the reduce side as data is merged. The old semantics are available in Hadoop 0.18 if the user calls: job.setCombineOnlyOnce(true);
Added org.apache.hadoop.mapred.lib.NLineInputFormat ,which splits N lines of input as one split. N can be specified by configuration property "mapred.line.input.format.linespermap", which defaults to 1.
Added reporter to FSNamesystem stateChangeLog, and a new metric to track the number of corrupted replicas.
Introduced directory quota as hard limits on the number of names in the tree rooted at that directory. An administrator may set quotas on individual directories explicitly. Newly created directories have no associated quota. File/directory creations fault if the quota would be exceeded. The attempt to set a quota faults if the directory would be in violation of the new quota.
Modified HOD to handle master (NameNode or JobTracker) failures on bad nodes by trying to bring them up on another node in the ring. Introduced new property ringmaster.max-master-failures to specify the maximum number of times a master is allowed to fail.
Added a new public interface Syncable which declares the sync() operation. FSDataOutputStream implements Syncable. If the wrappedStream in FSDataOutputStream is Syncalbe, calling FSDataOutputStream.sync() is equivalent to call wrappedStream.sync(). Otherwise, FSDataOutputStream.sync() is a no-op. Both DistributedFileSystem and LocalFileSystem support the sync() operation.
Changed data node to use FileChannel.tranferTo() to transfer block data.
Changed job submission protocol to not allow submission if the client's value of mapred.system.dir does not match the job tracker's. Deprecated JobConf.getSystemDir(); use JobClient.getSystemDir().
Added sync() method to FSDataOutputStream to really, really persist data in HDFS. InterDatanodeProtocol to implement this feature.
Added overloaded method getFileBlockLocations(FileStatus, long, long). This is an incompatible change for FileSystem implementations which override getFileBlockLocations(Path, long, long). They should have the signature of this method changed to getFileBlockLocations(FileStatus, long, long) to work correctly.
Introduced ByteWritable and DoubleWritable (implementing WritableComparable) implementations for Byte and Double.
Added FSNamesystem status metrics.
Changed protocol for transferring blocks between data nodes to report corrupt blocks to data node for re-replication from a good replica.
fsck reports corrupt blocks in the system.
Removed property ipc.client.maxidletime from the default configuration. The allowed idle time is twice ipc.client.connection.maxidletime.
Added task's cwd to its LD_LIBRARY_PATH.
Changed the output of the "fs -ls" command to more closely match familiar Linux format. Additional changes were made by HADOOP-3459. Applications that parse the command output should be reviewed.
Withdrew the upgrade-to-CRC facility. HDFS will no longer support upgrades from versions without CRCs for block data. Users upgrading from version 0.13 or earlier must first upgrade to an intermediate (0.14, 0.15, 0.16, 0.17) version before doing upgrade to version 0.18 or later.
Changed fsck to ignore files opened for writing. Introduced new option "-openforwrite" to explicitly show open files.
Associated a generation stamp with each block. On data nodes, the generation stamp is stored as part of the file name of the block's meta-data file.
Improved management of replicas of the name space image. If all replicas on the Name Node are lost, the latest check point can be loaded from the secondary Name Node. Use parameter "-importCheckpoint" and specify the location with "fs.checkpoint.dir." The directory structure on the secondary Name Node has changed to match the primary Name Node.
The current working directory of a task, i.e. ${mapred.local.dir}/taskTracker/jobcache/<jobid>/<task_dir>/work is cleanedup, as soon as the task is finished.
Replaced timeouts with pings to check that client connection is alive. Removed the property ipc.client.timeout from the default Hadoop configuration. Removed the metric RpcOpsDiscardedOPsNum.
Added logging for input splits in job tracker log and job history log. Added web UI for viewing input splits in the job UI and history UI.
Change "job -kill" to only allow a job that is in the RUNNING or PREP state to be killed.
Reduced in-memory copies of keys and values as they flow through the Map-Reduce framework. Changed the storage of intermediate map outputs to use new IFile instead of SequenceFile for better compression.
Added "corrupt" flag to LocatedBlock to indicate that all replicas of the block thought to be corrupt.
Added support for .tar, .tgz and .tar.gz files in DistributedCache. File sizes are limited to 2GB.
Provided a new method to update counters. "incrCounter(String group, String counter, long amount)"
Reduced buffer copies as data is written to HDFS. The order of sending data bytes and control information has changed, but this will not be observed by client applications.
Introduced a way for a streaming process to update global counters and status using stderr stream to emit information. Use "reporter:counter:<group>,<counter>,<amount> " to update a counter. Use "reporter:status:<message>" to update status.
Added support for reading and writing native S3 files. Native S3 files are referenced using s3n URIs. See http://wiki.apache.org/hadoop/AmazonS3 for more details.
Introduced new classes JobID, TaskID and TaskAttemptID, which should be used instead of their string counterparts. Deprecated functions in JobClient, TaskReport, RunningJob, jobcontrol.Job and TaskCompletionEvent that use string arguments. Applications can use xxxID.toString() and xxxID.forName() methods to convert/restore objects to/from strings.
Changed connection protocol job tracker and task tracker so that task tracker will not connect to a job tracker with a different build version.
Introduced FUSE module for HDFS. Module allows mount of HDFS as a Unix filesystem, and optionally the export of that mount point to other machines. Writes are disabled. rmdir, mv, mkdir, rm are supported, but not cp, touch, and the like. Usage information is attached to the Jira record.


EVmiRNA (Extracellular vesicle miRNA expression database) is a comprehensive database including miRNA expression profiles, miRNA related drug, miRNA regulated pathways, miRNA function, and related publications. We analysed 461 small RNA sequencing datasets of EVs from 17 human tissues/diseses.
Abstract summaryEV Samples: Click sources of Exosomes or Microvesicles, and users can browse sample cancer types, heatmap, expressed miRNAs, SRA sample information.
miRNAs list: miRNA basic infomation was presented in this page, and users can click expression detail button to get the epxression histogram. Click the miRNA ID link, users can browsed comprehensive miRNA infomation, contain miRNA basic infomation, miRNA expression profiles, miRNA related drug, miRNA regulated pathways, miRNA function, and related publications.
Specific miRNA: We use SEGtool identify specific miRNA of each source and cancer, And this miRNA list maybe potential miRNA biomarkers. Users can browse these miRNAs to help their research work.
Users can search by miRNA, and click search button to get miRNA basic infomation, miRNA expression profiles, miRNA related drug, miRNA regulated pathways, miRNA function, and related publications.
Users can Choose miRNA expression region and Select source types to get miRNA list.
We downloaded all exosomes and microvesicles miRNA samples from NCBI SRA database, after quality control, we obtained 461 samples (4 of these sample were sequenced by ourselves, 1 health control Fibroblasts microvesicles sample and 3 health control Mensenchymal stem cell microvesicles samples.). As below, we presented the sample summary.
mRNA partition percentage Sample counts statisticsAnnotation data source. miRNA basic information was collected from miRbase. Pathway information was collected from KEGG database, and use Hypergeometric p-value to filter miRNA pathway pairs. Publication information was collected from NCBI pubmed database. miRNA function was collected from NCBI RIF database. miRNA Drug information was collected from SM2miR (Small molecular miRNA database). miRNA targets was from TargetScan, miRanda, TarBase, miRTarBase, miR2Disease, miRecords and miRWalk.


Tic Tac Toe is a great game, it involves stratgey, luck and excitement while still being very easy to understand. With these qualities I find tic tac toe to be a great game to write as a program in order to understand the basics of the programming language involved. The only problem is picking which language should be chosen as the language.
As I am trying to increase my data science skills there are two obvious choices: R and Python. A third less obvious choice is Julia, a relatively new language that advertises itself as being written like Python but run like C. Unable to choose I am going to write tic tac toe in all three languages. This way if you know one of the languages but not the other you can compare two scripts (like the Rosetta Stone) to learn the new language, or at least learn a bit of notation.
To further ease the learning of these languages I will be writing multiple versions of each program. As each version progresses it will grow in coding and strategy complexity. However, to ease in translating each version will maintain the same pseudocode or template and differ in syntax. All of the pseudocode can be found on this page and the specific code is broken down further on the language specific pages (listed directly below). Hopefully everything is clear, now let’s get to the code:


{% extends "index.html" %} {% load staticfiles add_attr %} {% block content %}
Create Your VerifyNurse Account:
By continuing, you accept the Terms of Use and Privacy Policy


| KNOW ALL MEN BY THESE PRESENTS that I............................................................. |
| ...........................................(a)
widow/husband/son/daughter of Shri/Shrimati........................................... |
| (b) residing at...................................................(c)
(hereinafter called the Obligor') which expression shall |
| unless excluded by or repugnant to the context, include his/her heirs, executers, administrators
and legal |
| representatives and I/We (I)...............................................................................................(d)
son
|
| of............................................resident
of
........................................and
(2)(e)
........................................son |
| of..................................................................resident
of
........................................Surety/Sureties
on behalf of |
| repugnant to the context include his/their, heirs, executors, administrators and legal representatives)
bind ourselves jointly and severaly to pay to the President of India (hereinafter called
'the Government' which expression shall unless excluded by or repugnant to the context
include his successors and assigns) on |
| demand and without demur a sum of Rs...........................resident
.(f) (Rupees........................................)
for
|
| which payment well and truly to be made we bind ourselves firmly by these presents. |
| Dated this....................day of.........................19
....................
|
| WHEREAS the aforesaid Shri/Shrimati death in the
employment of Government |
(b) was at the time of his/her |
|
AND WHEREAS the said Shri/Shrimati............................................... died on the................................day of ...............19 .................and
..............) there was due to him/her sum of
Rs ............................................(f)
Rupees .....................) for Pay and Allowances
in respect of his/her said employment.
|
AND WHEREAS the above, bounden Obligor..........................................(a)
claims to be entitled to the said sum as heir of her/his wife/husband/father, the said
Shri/Shrimati
...............................................(b)
but has not obtained letters of administration or a succession certificate to the property
and effects of Shri/Shrimati
............................................
|
AND WHEREAS the Obligor has satisfied the Government that she/he
is entitled to the aforesaid sum and that it would cause undue delay and hardship if
she/he were required to produce letters of administrations of or a succession certificate
to the property and effects of the said
Shri/Shrimati
.....................................................(b).
|
| AND WHEREAS the Government desires to pay the said sum to the Obligor
but under Government rules and orders, it is necessary that she/he should first execute
a bond with one surety/two sureties to indemnify against all claims to the amount so
due to the said Shri/Shrimati .....................................................(b)
before the said sum can be paid to the Obligor.
|
| NOW THE CONDITION of this bond is such that if after payment has
been made to the Obligor, the Obligor or the Surety/ Sureties shall in the event of a
claim being made by any other person against the Government with respect to the aforesaid
sum of Rs .............................(f) (Rupees
...................) refund to the Government,
the sum of Rs...........................(f) (Rupees
.......................) and shall otherwise indemnify
and save Government harmless from all liability in respect of the aforesaid sum and all
costs incurred in consequence of any claim thereto THEN the above written bond or obligation
shall be void but otherwise the said bond shall remain in full force effect and virtue.
|
| IN WITNESS WHEREOF the parties hereto have hereunto set their respective hands the day and
the year first above written. |
Signed by the above named Surety/ Sureties in the presence of |
Signed by the above named Obligor in the presence of: |
| (1) .....................................................Witness
(1)
..................................................... |
| (2) ..................................................... (2) ..................................................... |
Accepted for and on behalf of the President of India by ..................................................... .....................................................@
in the presence of @@ ............................................................... |
| Notes: |
| (a) Full name of the claimant. |
| (b) Name of the deceased Government Servant/Pensioner. |
| (c) Full address and place of residence of claimant. |
| (d) First Surety. |
| (e) Second Surety. |
| (f) Amount of Claim. |
| * Signature of the Obligor. |
| ** Signature of the First Surety. |
| *** Signature of Second Surety. |
| @ Name and designation of the officer directed or authorised in pursuance of Article 299
(1) of the Constitution, to accept the bond for and on behalf of the President. |
| @@ Name and designation of witness. |
| Note: — The Obligor as wall as the Sureties should have attained majority so that the bond
may have legal effect or force. |


Burroughs 220 Emulator
Open-Source Project
Burroughs 205 & 220 Blog
Project Wiki
Start the Emulator
Configure the System
(Caution: Closing this window, minimizing it, or placing the page on a non-active tab may cause the emulator to run very slowly)


Marowak
Marowak is an
ground type
pokemon
, numbered 105 in the National Pokedex. Evolves from
marowak
.


3.2.0 Development
Enhancements:
-
Improve the
inspect
output of example groups. (Mike Dalton, #1687) -
When rake task fails, only output the command if
verbose
flag is set. (Ben Snape, #1704) -
Add
RSpec.clear_examples
as a clear way to reset examples in between spec runs, whilst retaining user configuration. (Alexey Fedorov, #1706) -
Reduce string allocations when defining and running examples by 70% and 50% respectively. (Myron Marston, #1738)
-
Removed dependency on pathname from stdlib. (Sam Phippen, #1703)
-
Improve the message presented when a user hits Ctrl-C. (Alex Chaffee #1717, #1742)
-
Improve shared example group inclusion backtrace displayed in failed example output so that it works for all methods of including shared example groups and shows all inclusion locations. (Myron Marston, #1763)
-
Issue seed notification at start (as well as the end) of the reporter run. (Arlandis Word, #1761)
-
Improve the documentation of around hooks. (Jim Kingdon, #1772)
-
Support prepending of modules into example groups from config and allow filtering based on metadata. (Arlandis Word, #1806)
Bug Fixes:
-
When assigning generated example descriptions, surface errors raised by
matcher.description
in the example description. (Myron Marston, #1771) -
Don't consider expectations from
after
hooks when generating example descriptions. (Myron Marston, #1771) -
Don't apply metadata-filtered config hooks to examples in groups with matching metadata when those example override the parent metadata value to not match. (Myron Marston, #1796)
3.1.8 Development
Bug Fixes:
-
Apply
--seed
before loading--require
files so that required files can access the provided seed. (Myron Marston, #1745) -
Handle
RSpec::Core::Formatters::DeprecationFormatter::FileStream
being reopened with an IO stream, which sometimes happens with spring. (Kevin Mook, #1757)
3.1.7 / 2014-10-11
Bug Fixes:
-
Fix
Metadata.relative_path
so that for a current directory of/foo/bar
,/foo/bar_1
is not wrongly converted to._1
. (Akos Vandra, #1730) -
Prevent constant lookup mistakenly finding
RSpec::ExampleGroups
generated constants on 1.9.2 by appending a trailing_
to the generated names. (Jon Rowe, #1737) -
Fix bug in
:pending
metadata. If it got set in any way besides passing it as part of the metadata literal passed toit
(such as by usingdefine_derived_metadata
), it did not have the desired effect, instead marking the example as:passed
. (Myron Marston, #1739)
3.1.6 / 2014-10-08
Bug Fixes:
-
Fix regression in rake task pattern handling, that prevented patterns that were relative from the current directory rather than from
spec
from working properly. (Myron Marston, #1734) -
Prevent rake task from generating duplicate load path entries. (Myron Marston, #1735)
3.1.5 / 2014-09-29
Bug Fixes:
-
Fix issue with the rake task incorrectly escaping strings on Windows. (Jon Rowe #1718)
-
Support absolute path patterns. While this wasn't officially supported previously, setting
rake_task.pattern
to an absolute path pattern in RSpec 3.0 and before worked since it delegated toFileList
internally (but now just forwards the pattern on to therspec
command). (Myron Marston, #1726)
3.1.4 / 2014-09-18
Bug Fixes:
-
Fix implicit
subject
when usingdescribe false
ordescribe nil
so that it returns the provided primitive rather than the string representation. (Myron Marston, #1710) -
Fix backtrace filtering to allow code in subdirectories of your current working directory (such as vendor/bundle/…) to be filtered from backtraces. (Myron Marston, #1708)
3.1.3 / 2014-09-15
Bug Fixes:
-
Fix yet another regression in rake task pattern handling, to allow
task.pattern = FileList["..."]
to work. That was never intended to be supported but accidentally worked in 3.0 and earlier. (Myron Marston, #1701) -
Fix pattern handling so that files are normalized to absolute paths before subtracting the
--exclude-pattern
matched files from the--pattern
matched files so that it still works even if the patterns are in slightly different forms (e.g. one starting with./
). (Christian Nelson, #1698)
3.1.2 / 2014-09-08
Bug Fixes:
-
Fix another regression in rake task pattern handling, so that patterns that start with
./
still work. (Christian Nelson, #1696)
3.1.1 / 2014-09-05
Bug Fixes:
-
Fix a regression in rake task pattern handling, so that
rake_task.pattern = array
works again. While we never intended to support array values (or even knew that worked!), the implementation from 3.0 and earlier usedFileList
internally, which allows arrays. The fix restores the old behavior. (Myron Marston, #1694)
3.1.0 / 2014-09-04
Enhancements:
-
Update files generated by
rspec --init
so that warnings are enabled in commented out section ofspec_helper
rather than.rspec
so users have to consciously opt-in to the setting. (Andrew Hooker, #1572) -
Update
spec_helper
generated byrspec --init
so that it sets the new rspec-expectationsinclude_chain_clauses_in_custom_matcher_descriptions
config option (which will be on by default in RSpec 4) and also sets the rspec-mocksverify_partial_doubles
option (which will also default to on in RSpec 4). (Myron Marston, #1647) -
Provide an
inspect
output for example procsy objects (used in around hooks) that doesn't make them look like procs. (Jon Rowe, #1620) -
Remove a few unneeded
require
statements fromrspec/core/rake_task.rb
, making it even more lighterweight. (Myron Marston, #1640) -
Allow rspec-core to be used when neither rspec-mocks or rspec-expectations are installed, without requiring any user configuration. (Sam Phippen, Myron Marston, #1615)
-
Don't filter out gems from backtraces by default. (The RSpec gems will still be filtered). User feedback has indicated that including gems in default backtraces will be useful. (Myron Marston, #1641)
-
Add new
config.filter_gems_from_backtrace "rack", "rake"
API to easily filter the named gems from backtraces. (Myron Marston, #1682) -
Fix default backtrace filters so that the RSpec binary is excluded when installing RSpec as a bundler
:git
dependency. (Myron Marston, #1648) -
Simplify command generated by the rake task so that it no longer includes unnecessary
-S
. (Myron Marston, #1559) -
Add
--exclude-pattern
CLI option,config.exclude_pattern =
config option andtask.exclude_pattern =
rake task config option. Matching files will be excluded. (John Gesimondo, Myron Marston, #1651, #1671) -
When an around hook fails to execute the example, mark it as pending (rather than passing) so the user is made aware of the fact that the example did not actually run. (Myron Marston, #1660)
-
Remove dependency on
FileUtils
from the standard library so that users do not get false positives where their code relies on it but they are not requiring it. (Sam Phippen, #1565)
Bug Fixes:
-
Fix rake task
t.pattern =
option so that it does not run all specs when it matches no files, by passing along a--pattern
option to therspec
command, rather than resolving the file list and passing along the files individually. (Evgeny Zislis, #1653) -
Fix rake task default pattern so that it follows symlinks properly. (Myron Marston, #1672)
-
Fix default pattern used with
rspec
command so that it follows symlinks properly. (Myron Marston, #1672) -
Change how we assign constant names to example group classes so that it avoids a problem with
describe "Core"
. (Daniela Wellisz, #1679) -
Handle rendering exceptions that have a different encoding than that of their original source file. (Jon Rowe, #1681)
-
Allow access to message_lines without colour for failed examples even when they're part of a shared example group. (tomykaira, #1689)
3.0.4 / 2014-08-14
Bug Fixes:
-
Fix processing order of CLI options so that if
config.files_to_run
is accessed from a file loaded by--require
,--pattern
is still applied. (Myron Marston, #1652) -
Fix
config.pattern=
so that it still takes affect even ifconfig.files_to_run
has already been accessed. (Myron Marston, #1652)
3.0.3 / 2014-07-21
Bug Fixes:
-
Properly convert both parts of a description into strings before concatenation. (@nicklink483, #1636)
-
Exclude the working directory when figuring out folders to ignore. (Jon Rowe, Myron Marston, #1616)
-
Allow
::RSpec::Core::Notifications::FailedExampleNotification#message_lines
to be accessed without a colouriser. (@tomykaira, #1637)
3.0.2 / 2014-06-19
Bug Fixes:
-
Fix regression in CLI option handling that prevented
--tag slow
passed at the command line from overriding--tag ~slow
in.rspec
. (Colin Jones, #1602) -
Fix metadata
:example_group
deprecation warning so that it gets issued at the call site of the configuration that specified it as a filter rather than later when an example group is defined. (Myron Marston, #1562) -
Make the line that is printed when a shared example group fails indicating where the concrete example group is white, separating it from the stack trace that is produced for the failure. (Sam Phippen, Jon Rowe, #1606)
3.0.1 / 2014-06-12
Bug Fixes:
-
Fix a couple ruby warnings caused by rspec-core when loaded. (Prem Sichanugrist, #1584)
-
Example groups named
Config
will no longer cause a Ruby warning to be issued. (Jimmy Cuadra, #1580)
3.0.0 / 2014-06-01
Bug Fixes:
-
Fix
BaseTextFormatter
so that it does not re-close a closed output stream. (Myron Marston) -
Fix regression in metadata that caused the metadata hash of a top-level example group to have a
:parent_example_group
key even though it has no parent example group. (Myron Marston)
Enhancements:
-
Alter the default
spec_helper.rb
to no longer recommendconfig.full_backtrace = true
see #1536 for discussion. (Jon Rowe)
3.0.0.rc1 / 2014-05-18
Breaking Changes for 3.0.0:
-
Change
described_class
so that in a nested group likedescribe MyClass
, it returnsMyClass
rather than the outer group's described class. (Myron Marston) -
Refactor filter manager so that it no longer subclasses Hash and has a tighter, more domain-specific interface. (Sergey Pchelincev)
-
Remove legacy colours definitions from
BaseTextFormatter
. (Jon Rowe) -
Remove console color definitions from
BaseTextFormatter
. (Jon Rowe) -
Restructure example group metadata so that the computed keys are exposed directly off of the metadata hash rather than being on a nested
:example_group
subhash. In addition, the parent example group metadata is now available as[:parent_example_group]
rather than[:example_group][:example_group]
. Deprecated access via the old key structure is still provided. (Myron Marston) -
Remove
:describes
metadata key. It duplicates:described_class
for no good reason. Deprecated access via:describes
is still provided. (Myron Marston) -
Rename
:example_group_block
metadata key to:block
. (Myron Marston) -
Remove deprecated
RSpec::Core::Example#options
. (Myron Marston) -
Move
BaseTextFormatter#colorize_summary
toSummaryNotification#colorize_with
(Jon Rowe). -
describe some_hash
treatedsome_hash
as metadata in RSpec 2.x but will treat it as the described object in RSpec 3.0. Metadata must always come after the description args. (Myron Marston) -
Remove deprecated
display_name
alias ofExampleGroup.description
. (Myron Marston) -
Remove deprecated
describes
alias ofExampleGroup.described_class
. (Myron Marston) -
Remove deprecated
RSpec::Core::ExampleGroup.alias_it_behaves_like_to
. UseRSpec::Core::Configuration#alias_it_behaves_like_to
instead. (Myron Marston) -
Remove deprecated
RSpec::Core::ExampleGroup.alias_example_to
. UseRSpec::Core::Configuration#alias_example_to
instead. (Myron Marston) -
Removed
focused
example alias and change example/group aliasesfit
,focus
,fcontext
andfdescribe
to no longer include:focused => true
metadata. They only contain:focus => true
metadata now. This means that you will need to filter them withfilter_run :focus
, notfilter_run :focused
. (Myron Marston) -
Remove
--line-number
filtering. It's semantically dubious since it's a global filter (potentially applied to multiple files) but there's no meaningful connection between the same line number in multiple files. Instead use therspec path/to/spec.rb:23:46
form, which is terser and makes more sense as it is scoped to a file. (Myron Marston) -
Remove
--default_path
as an alias for--default-path
. (Jon Rowe) -
Remove deprecated
share_examples_for
. There's stillshared_examples
andshared_examples_for
. (Myron Marston) -
Rename
RSpec::Core::Configuration#warnings
toRSpec::Core::Configuration#warnings?
since it's a boolean flag. (Myron Marston) -
RSpec's global state is no longer reset after a spec run. This gives more flexibility to alternate runners to decide when and if they want the state reset. Alternate runners are now responsible for calling this (or doing a similar reset) if they are going to run the spec suite multiple times in the same process. (Sam Phippen)
-
Merge
RSpec::Core::CommandLine
(never formally declared public) intoRSpec::Core::Runner
. (Myron Marston) -
Remove
color_enabled
as an alias ofcolor
. (Jon Rowe) -
Remove
backtrace_cleaner
as an alias ofbacktrace_formatter
. (Jon Rowe) -
Remove
filename_pattern
as an alias ofpattern
. (Jon Rowe) -
Extract support for legacy formatters to
rspec-legacy_formatters
. (Jon Rowe) -
RSpec::Configuration#formatters
now returns a dup to prevent mutation. (Jon Rowe) -
Replace
stdlib
as an available expectation framework withtest_unit
andminitest
. (Aaron Kromer) -
Remove backtrace formatting helpers from
BaseTextFormatter
. (Jon Rowe) -
Extract profiler support to
ProfileFormatter
andProfileNotification
. Formatters should implementdump_profile
if they wish to respond to--profile
. (Jon Rowe) -
Extract remaining formatter state to reporter and notifications. Introduce
ExamplesNotification
to share information about examples that was previously held inBaseFormatter
. (Jon Rowe)
Enhancements:
-
Add
config.default_formatter
attribute, which can be used to set a formatter which will only be used if no other formatter is set (e.g. via--formatter
). (Myron Marston) -
Support legacy colour definitions in
LegacyFormatterAdaptor
. (Jon Rowe) -
Migrate
execution_result
(exposed by metadata) from a hash to a first-class object with appropriate attributes.status
is now stored and returned as a symbol rather than a string. It retains deprecated hash behavior for backwards compatibility. (Myron Marston) -
Provide console code helper for formatters. (Jon Rowe)
-
Use raw ruby hashes for the metadata hashes rather than a subclass of a hash. Computed metadata entries are now computed in advance rather than being done lazily on first access. (Myron Marston)
-
Add
:block
metadata entry to the example metadata, bringing parity with:block
in the example group metadata. (Myron Marston) -
Add
fspecify
andfexample
as aliases ofspecify
andexample
with:focus => true
metadata for parity withfit
. (Myron Marston) -
Add legacy support for
colorize_summary
. (Jon Rowe) -
Restructure runner so it can be more easily customized in a subclass for an alternate runner. (Ben Hoskings)
-
Document
RSpec::Core::ConfigurationOptions
as an officially supported public API. (Myron Marston) -
Add
--deprecation-out
CLI option which directs deprecation warnings to the named file. (Myron Marston) -
Minitest 5 compatability for
expect_with :stdlib
(now available asexpect_with :minitest
). (Xavier Shay) -
Reporter now notifies formatters of the load time of RSpec and your specs via
StartNotification
andSummaryNotification
. (Jon Rowe) -
Add
disable_monkey_patching!
config option that disables all monkey patching from whatever pieces of RSpec you use. (Alexey Fedorov) -
Add
Pathname
support for setting all output streams. (Aaron Kromer) -
Add
config.define_derived_metadata
, which can be used to apply additional metadata to all groups or examples that match a given filter. (Myron Marston) -
Provide formatted and colorized backtraces via
FailedExampleNotification
and sendPendingExampleFixedNotifications
when the error is due to a passing spec you expect to fail. (Jon Rowe) -
Add
dump_profile
to formatter API to allow formatters to implement support for--profile
. (Jon Rowe) -
Allow colourising text via
ConsoleCodes
with RSpec 'states' (e.g.:success
,:failure
) rather than direct colour codes. (Jon Rowe) -
Expose
fully_formatted
methods off the formatter notification objects that make it easy for a custom formatter to produce formatted output like rspec-core's. (Myron Marston)
Bug Fixes:
-
Fix
spec_helper.rb
file generated byrspec --init
so that the recommended settings correctly use the documentation formatter when running one file. (Myron Marston) -
Fix ordering problem where descriptions were generated after tearing down mocks, which resulted in unexpected exceptions. (Bradley Schaefer, Aaron Kromer, Andrey Savchenko)
-
Allow a symbol to be used as an implicit subject (e.g.
describe :foo
). (Myron Marston) -
Prevent creating an isolated context (i.e. using
RSpec.describe
) when already inside a context. There is no reason to do this, and it could potentially cause unexpected bugs. (Xavier Shay) -
Fix shared example group scoping so that when two shared example groups share the same name at different levels of nested contexts, the one in the nearest context is used. (Myron Marston)
-
Fix
--warnings
option so that it enables warnings immediately so that it applies to files loaded by--require
. (Myron Marston) -
Issue a warning when you set
config.deprecation_stream
too late for it to take effect because the reporter has already been setup. (Myron Marston) -
Add the full
RSpec::Core::Example
interface to the argument yielded toaround
hooks. (Myron Marston) -
Line number always takes precendence when running specs with filters. (Xavier Shay)
-
Ensure :if and :unless metadata filters are treated as a special case and are always in-effect. (Bradley Schaefer)
-
Ensure the currently running installation of RSpec is used when the rake task shells out to
rspec
, even if a newer version is also installed. (Postmodern) -
Using a legacy formatter as default no longer causes an infinite loop. (Xavier Shay)
3.0.0.beta2 / 2014-02-17
Breaking Changes for 3.0.0:
-
Make
mock_with
option more strict. Strings are no longer supported (e.g.mock_with "mocha"
) – use a symbol instead. Also, unrecognized values will now result in an error rather than falling back to the null mocking adapter. If you want to use the null mocking adapter, usemock_with :nothing
(as has been documented for a long time). (Myron Marston) -
Remove support for overriding RSpec's built-in
:if
and:unless
filters. (Ashish Dixit) -
Custom formatters are now required to call
RSpec::Core::Formatters.register(formatter_class, *notifications)
wherenotifications
is the list of events the formatter wishes to be notified about. Notifications are handled by methods matching the names on formatters. This allows us to add or remove notifications without breaking existing formatters. (Jon Rowe) -
Change arguments passed to formatters. Rather than passing multiple arguments (which limits are ability to add additional arguments as doing so would break existing formatters), we now pass a notification value object that exposes the same data via attributes. This will allow us to add new bits of data to a notification event without breaking existing formatters. (Jon Rowe)
-
Remove support for deprecated
:alias
option forRSpec.configuration.add_setting
. (Myron Marston) -
Remove support for deprecated
RSpec.configuration.requires = [...]
. (Myron Marston) -
Remove support for deprecated
--formatter
CLI option. (Myron Marston) -
Remove support for deprecated
--configure
CLI option. (Myron Marston) -
Remove support for deprecated
RSpec::Core::RakeTask#spec_opts=
. (Myron Marston) -
An example group level
pending
block or:pending
metadata now executes the example and cause a failure if it passes, otherwise it will be pending if it fails. The old “never run” behaviour is still used forxexample
,xit
, andxspecify
, or via a newskip
method or:skip
metadata option. (Xavier Shay) -
After calling
pending
inside an example, the remainder of the example will now be run. If it passes a failure is raised, otherwise the example is marked pending. The old “never run” behaviour is provided a by a newskip
method. (Xavier Shay) -
Pending blocks inside an example have been removed as a feature with no direct replacement. Use
skip
orpending
without a block. (Xavier Shay) -
Pending statement is no longer allowed in
before(:all)
hooks. Useskip
instead. (Xavier Shay) -
Remove
show_failures_in_pending_blocks
configuration option. (Xavier Shay) -
Remove support for specifying the documentation formatter using 's', 'n', 'spec' or 'nested'. (Jon Rowe)
Enhancements:
-
Add example run time to JSON formatter output. (Karthik Kastury)
-
Add more suggested settings to the files generated by
rspec --init
. (Myron Marston) -
Add
config.alias_example_group_to
, which can be used to define a new method that defines an example group with the provided metadata. (Michi Huber) -
Add
xdescribe
andxcontext
as shortcuts to skip an example group. (Myron Marston) -
Add
fdescribe
andfcontext
as shortcuts to focus an example group. (Myron Marston) -
Don't autorun specs via
#at_exit
by default.require 'rspec/autorun'
is only needed when running specs viaruby
, as it always has been. Running specs viarake
orrspec
are both unaffected. (Ben Hoskings) -
Add
expose_dsl_globally
config option, defaulting to true. When disabled it will remove the monkey patches rspec-core adds tomain
andModule
(e.g.describe
,shared_examples_for
, etc). (Jon Rowe) -
Expose RSpec DSL entry point methods (
describe
,shared_examples_for
, etc) on theRSpec
constant. Intended for use whenexpose_dsl_globally
is set tofalse
. (Jon Rowe) -
For consistency, expose all example group aliases (including
context
) on theRSpec
constant. Ifexpose_dsl_globally
is set totrue
, also expose them onmain
andModule
. Historically, onlydescribe
was exposed. (Jon Rowe, Michi Huber) -
Add hook scope
:example
as an alias for:each
, and:context
as an alias for:all
. (John Feminella)
Bug Fixes:
-
Fix failure (undefined method
path
) in end-of-run summary whenraise_errors_for_deprecations!
is configured. (Myron Marston) -
Issue error when attempting to use
-i
or--I
on command line, too close to-I
to be considered short hand for--init
. (Jon Rowe) -
Prevent adding formatters to an output target if the same formatter has already been added to that output. (Alex Peattie)
-
Allow a matcher-generated example description to be used when the example is pending. (Myron Marston)
-
Ensure the configured
failure_exit_code
is used by the rake task when there is a failure. (Jon Rowe) -
Restore behaviour whereby system exclusion filters take priority over working directory (was broken in beta1). (Jon Rowe)
-
Prevent RSpec mangling file names that have substrings containing
line_number
ordefault_path
. (Matijs van Zuijlen)
3.0.0.beta1 / 2013-11-07
Breaking Changes for 3.0.0:
-
Remove explicit support for 1.8.6. (Jon Rowe)
-
Remove
RSpec::Core::ExampleGroup#example
andRSpec::Core::ExampleGroup#running_example
methods. If you need access to the example (e.g. to get its metadata), use a block arg instead. (David Chelimsky) -
Remove
TextMateFormatter
, it has been moved torspec-tmbundle
. (Aaron Kromer) -
Remove RCov integration. (Jon Rowe)
-
Remove deprecated support for RSpec 1 constructs (Myron Marston):
-
The
Spec
andRspec
constants (rather thanRSpec
). -
Spec::Runner.configure
rather thanRSpec.configure
. -
Rake::SpecTask
rather thanRSpec::Core::RakeTask
. -
Remove deprecated support for
share_as
. (Myron Marston) -
Remove
--debug
option (and corresponding option onRSpec::Core::Configuration
). Instead, use-r<debugger gem name>
to load whichever debugger gem you wish to use (e.g.ruby-debug
,debugger
, orpry
). (Myron Marston) -
Extract Autotest support to a seperate gem. (Jon Rowe)
-
Raise an error when a
let
orsubject
declaration is accessed in abefore(:all)
orafter(:all)
hook. (Myron Marston) -
Extract
its
support to a separate gem. (Peter Alfvin) -
Disallow use of a shared example group from sibling contexts, making them fully isolated. 2.14 and 2.99 allowed this but printed a deprecation warning. (Jon Rowe)
-
Remove
RSpec::Core::Configuration#output
andRSpec::Core::Configuration#out
aliases ofRSpec::Core::Configuration#output_stream
. (Myron Marston) -
Remove legacy ordering APIs deprecated in 2.99.0.beta1. (Myron Marston)
Enhancements:
-
Replace unmaintained syntax gem with coderay gem. (Xavier Shay)
-
Times in profile output are now bold instead of
failure_color
. (Matthew Boedicker) -
Add
--no-fail-fast
command line option. (Gonzalo Rodríguez-Baltanás Díaz) -
Runner now considers the local system ip address when running under Drb. (Adrian CB)
-
JsonFormatter now includes
--profile
information. (Alex / @MasterLambaster) -
Always treat symbols passed as metadata args as hash keys with true values. RSpec 2 supported this with the
treat_symbols_as_metadata_keys_with_true_values
but now this behavior is always enabled. (Myron Marston) -
Add
--dry-run
option, which prints the formatter output of your suite without running any examples or hooks. (Thomas Stratmann, Myron Marston) -
Document the configuration options and default values in the
spec_helper.rb
file that is generated by RSpec. (Parker Selbert) -
Give generated example group classes a friendly name derived from the docstring, rather than something like “Nested_2”. (Myron Marston)
-
Avoid affecting randomization of user code when shuffling examples so that users can count on their own seeds working. (Travis Herrick)
-
Ordering is no longer a single global property of the test suite. Each group can pick an ordering using
:order
metadata. (Andy Lindeman, Sam Phippen, Myron Marston) -
Allow named custom ordering strategies to be registered, which can then be used on individual example groups. (Andy Lindeman, Sam Phippen, Myron Marston)
Deprecations:
-
treat_symbols_as_metadata_keys_with_true_values
is deprecated and no longer has an affect now that the behavior it enabled is always enabled. (Myron Marston)
2.99.2 / 2014-08-19
Enhancements:
-
Improve deprecation warning for RSpec 3 change in
describe <a symbol>
behavior. (Jon Rowe, #1667)
2.99.1 / 2014-06-19
Bug Fixes:
-
Add missing deprecation warning for when
RSpec::Core::Runner
is used multiple times in the same process. In 2.x RSpec's global state was automatically cleared between runs but in 3.0 you need to callRSpec.reset
manually in these situations. (Sam Phippen, #1587) -
Prevent deprecation being accidentally issues when doubles used with
be_
matchers due to automatically generated descriptions. (Jon Rowe, #1573) -
Load
rspec/core
when loadingrspec/core/rake_task
to ensure we can issue deprecations correctly. (Jon Rowe, #1612)
2.99.0 / 2014-06-01
Bug Fixes:
-
Fix
BaseTextFormatter
so that it does not re-close a closed output stream. (Myron Marston) -
Use
RSpec::Configuration#backtrace_exclusion_patterns
rather than the deprecatedRSpec::Configuration#backtrace_clean_patterns
when mocking with rr. (David Dollar)
2.99.0.rc1 / 2014-05-18
Enhancements:
-
Add
--deprecation-out
CLI option which directs deprecation warnings to the named file. (Myron Marston) -
Backport support for
skip
in metadata to skip execution of an example. (Xavier Shay, #1472) -
Add
Pathname
support for setting all output streams. (Aaron Kromer) -
Add
test_unit
andminitest
expectation frameworks. (Aaron Kromer)
Deprecations:
-
Deprecate
RSpec::Core::Pending::PendingDeclaredInExample
, useSkipDeclaredInExample
instead. (Xavier Shay) -
Issue a deprecation when
described_class
is accessed from within a nesteddescribe <SomeClass>
example group, sincedescribed_class
will return the innermost described class in RSpec 3 rather than the outermost described class, as it behaved in RSpec 2. (Myron Marston) -
Deprecate
RSpec::Core::FilterManager::DEFAULT_EXCLUSIONS
,RSpec::Core::FilterManager::STANDALONE_FILTERS
and use of#empty_without_conditional_filters?
on those filters. (Sergey Pchelincev) -
Deprecate
RSpec::Core::Example#options
in favor ofRSpec::Core::Example#metadata
. (Myron Marston) -
Issue warning when passing a symbol or hash to
describe
orcontext
as the first argument. In RSpec 2.x this would be treated as metadata but in RSpec 3 it'll be treated as the described object. To continue having it treated as metadata, pass a description before the symbol or hash. (Myron Marston) -
Deprecate
RSpec::Core::BaseTextFormatter::VT100_COLORS
andRSpec::Core::BaseTextFormatter::VT100_COLOR_CODES
in favour ofRSpec::Core::BaseTextFormatter::ConsoleCodes::VT100_CODES
andRSpec::Core::BaseTextFormatter::ConsoleCodes::VT100_CODE_VALUES
. (Jon Rowe) -
Deprecate
RSpec::Core::ExampleGroup.display_name
in favor ofRSpec::Core::ExampleGroup.description
. (Myron Marston) -
Deprecate
RSpec::Core::ExampleGroup.describes
in favor ofRSpec::Core::ExampleGroup.described_class
. (Myron Marston) -
Deprecate
RSpec::Core::ExampleGroup.alias_example_to
in favor ofRSpec::Core::Configuration#alias_example_to
. (Myron Marston) -
Deprecate
RSpec::Core::ExampleGroup.alias_it_behaves_like_to
in favor ofRSpec::Core::Configuration#alias_it_behaves_like_to
. (Myron Marston) -
Deprecate
RSpec::Core::ExampleGroup.focused
in favor ofRSpec::Core::ExampleGroup.focus
. (Myron Marston) -
Add deprecation warning for
config.filter_run :focused
since example aliasesfit
andfocus
will no longer include:focused
metadata but will continue to include:focus
. (Myron Marston) -
Deprecate filtering by
:line_number
(e.g.--line-number
from the CLI). Use location filtering instead. (Myron Marston) -
Deprecate
--default_path
as an alternative to--default-path
. (Jon Rowe) -
Deprecate
RSpec::Core::Configuration#warnings
in favor ofRSpec::Core::Configuration#warnings?
. (Myron Marston) -
Deprecate
share_examples_for
in favor ofshared_examples_for
or justshared_examples
. (Myron Marston) -
Deprecate
RSpec::Core::CommandLine
in favor ofRSpec::Core::Runner
. (Myron Marston) -
Deprecate
#color_enabled
,#color_enabled=
and#color?
in favour of#color
,#color=
and#color_enabled? output
. (Jon Rowe) -
Deprecate
#filename_pattern
in favour of#pattern
. (Jon Rowe) -
Deprecate
#backtrace_cleaner
in favour of#backtrace_formatter
. (Jon Rowe) -
Deprecate mutating
RSpec::Configuration#formatters
. (Jon Rowe) -
Deprecate
stdlib
as an available expectation framework in favour oftest_unit
andminitest
. (Aaron Kromer)
Bug Fixes:
-
Issue a warning when you set
config.deprecation_stream
too late for it to take effect because the reporter has already been setup. (Myron Marston) -
skip
with a block should not execute the block. (Xavier Shay)
2.99.0.beta2 / 2014-02-17
Enhancements:
-
Add
is_expected
for one-liners that read well with theexpect
-based syntax.is_expected
is simply defined asexpect(subject)
and can be used in an expression like:it { is_expected.to read_well }
. (Myron Marston) -
Backport
skip
from RSpec 3, which acts likepending
did in RSpec 2 when not given a block, since the behavior ofpending
is changing in RSpec 3. (Xavier Shay)
Deprecations:
-
Deprecate inexact
mock_with
config options. RSpec 3 will only support the exact symbols:rspec
,:mocha
,:flexmock
,:rr
or:nothing
(or any module that implements the adapter interface). RSpec 2 did fuzzy matching but this will not be supported going forward. (Myron Marston) -
Deprecate
show_failures_in_pending_blocks
config option. To achieve the same behavior as the option enabled, you can use a custom formatter instead. (Xavier Shay) -
Add a deprecation warning for the fact that the behavior of
pending
is changing in RSpec 3 – rather than skipping the example (as it did in 2.x when no block was provided), it will run the example and mark it as failed if no exception is raised. Useskip
instead to preserve the old behavior. (Xavier Shay) -
Deprecate 's', 'n', 'spec' and 'nested' as aliases for documentation formatter. (Jon Rowe)
-
Deprecate
RSpec::Core::Reporter#abort
in favor ofRSpec::Core::Reporter#finish
. (Jon Rowe)
Bug Fixes:
-
Fix failure (undefined method
path
) in end-of-run summary whenraise_errors_for_deprecations!
is configured. (Myron Marston) -
Fix issue were overridding spec ordering from the command line wasn't fully recognised interally. (Jon Rowe)
2.99.0.beta1 / 2013-11-07
Enhancements
-
Block-based DSL methods that run in the context of an example (
it
,before(:each)
,after(:each)
,let
andsubject
) now yield the example as a block argument. (David Chelimsky) -
Warn when the name of more than one example group is submitted to
include_examples
and it's aliases. (David Chelimsky) -
Add
expose_current_running_example_as
config option for use during the upgrade process when external gems use the deprecatedRSpec::Core::ExampleGroup#example
andRSpec::Core::ExampleGroup#running_example
methods. (Myron Marston) -
Limit spamminess of deprecation messages. (Bradley Schaefer, Loren Segal)
-
Add
config.raise_errors_for_deprecations!
option, which turns deprecations warnings into errors to surface the full backtrace of the call site. (Myron Marston)
Deprecations
-
Deprecate
RSpec::Core::ExampleGroup#example
andRSpec::Core::ExampleGroup#running_example
methods. If you need access to the example (e.g. to get its metadata), use a block argument instead. (David Chelimsky) -
Deprecate use of
autotest/rspec2
in favour ofrspec-autotest
. (Jon Rowe) -
Deprecate RSpec's built-in debugger support. Use a CLI option like
-rruby-debug
(for the ruby-debug gem) or-rdebugger
(for the debugger gem) instead. (Myron Marston) -
Deprecate
RSpec.configuration.treat_symbols_as_metadata_keys_with_true_values = false
. RSpec 3 will not support having this option set tofalse
. (Myron Marston) -
Deprecate accessing a
let
orsubject
declaration in aafter(:all)
hook. (Myron Marston, Jon Rowe) -
Deprecate built-in
its
usage in favor ofrspec-its
gem due to planned removal in RSpec 3. (Peter Alfvin) -
Deprecate
RSpec::Core::PendingExampleFixedError
in favor ofRSpec::Core::Pending::PendingExampleFixedError
. (Myron Marston) -
Deprecate
RSpec::Core::Configuration#out
andRSpec::Core::Configuration#output
in favor ofRSpec::Core::Configuration#output_stream
. (Myron Marston) -
Deprecate legacy ordering APIs.
-
You should use
register_ordering(:global)
instead of these:-
RSpec::Core::Configuration#order_examples
-
RSpec::Core::Configuration#order_groups
-
RSpec::Core::Configuration#order_groups_and_examples
-
-
These are deprecated with no replacement because in RSpec 3 ordering is a property of individual example groups rather than just a global property of the entire test suite:
-
RSpec::Core::Configuration#order
-
RSpec::Core::Configuration#randomize?
-
-
--order default
is deprecated in favor of--order defined
(Myron Marston)
2.14.8 / 2014-02-27
Bug fixes:
-
Fix regression with the
textmateformatter
that prevented backtrace links from being clickable. (Stefan Daschek)
2.14.7 / 2013-10-29
Bug fixes:
-
Fix regression in 2.14.6 that broke the Fivemat formatter. It depended upon either
example.execution_result[:exception].pending_fixed?
(which was removed in 2.14.6 to fix an issue with frozen error objects) orRSpec::Core::PendingExampleFixedError
(which was renamed toRSpec::Core::Pending::PendingExampleFixedError
in 2.8. This fix makes a constant alias for the old error name. (Myron Marston)
2.14.6 / 2013-10-15
Bug fixes:
-
Format stringified numbers correctly when mathn library is loaded. (Jay Hayes)
-
Fix an issue that prevented the use of frozen error objects. (Lars Gierth)
2.14.5 / 2013-08-13
Bug fixes:
-
Fix a
NoMethodError
that was being raised when there were no shared examples or contexts declared andRSpec.world.reset
is invoked. (thepoho, Jon Rowe, Myron Marston) -
Fix a deprecation warning that was being incorrectly displayed when
shared_examples
are declared at top level in amodule
scope. (Jon Rowe) -
Fix after(:all) hooks so consecutive (same context) scopes will run even if one raises an error. (Jon Rowe, Trejkaz)
-
JsonFormatter no longer dies if
dump_profile
isn't defined (Alex / @MasterLambaster, Jon Rowe)
2.14.4 / 2013-07-21
Bug fixes
-
Fix regression in 2.14: ensure configured requires (via
-r
option) are loaded before spec files are loaded. This allows the spec files to programatically change the file pattern (Jon Rowe). -
Autoload
RSpec::Mocks
andRSpec::Expectations
when referenced if they are not already loaded (RSpec::Matches
has been autoloaded for a while). In therspec
gem, we changed it recently to stop loadingrspec/mocks
andrspec/expectations
by default, as some users reported problems where they were intending to use mocha, not rspec-mocks, but rspec-mocks was loaded and causing a conflict. rspec-core loads mocks and expectations at the appropriate time, so it seemed like a safe change – but caused a problem for some authors of libraries that integrate with RSpec. This fixes that problem. (Myron Marston) -
Gracefully handle a command like
rspec --profile path/to/spec.rb
: thepath/to/spec.rb
arg was being wrongly treated as theprofile
integer arg, which got cast0
usingto_i
, causing no profiled examples to be printed. (Jon Rowe)
2.14.3 / 2013-07-13
Bug fixes
-
Fix deprecation notices issued from
RSpec::Core::RakeTask
so that they work properly when all of rspec-core is not loaded. (This was a regression in 2.14) (Jon Rowe)
2.14.2 / 2013-07-09
Bug fixes
-
Fix regression caused by 2.14.1 release: formatters that report that they
respond_to?
a notification, but had no corresponding method would raise an error when registered. The new fix is to just implementstart
on the deprecation formatter to fix the original JRuby/ruby-debug issue. (Jon Rowe)
2.14.1 / 2013-07-08
Bug fixes
-
Address deprecation formatter failure when using
ruby-debug
on JRuby: fixRSpec::Core::Reporter
to not send a notification when the formatter's implementation of the notification method comes fromKernel
(Alex Portnov, Jon Rowe).
2.14.0 / 2013-07-06
Enhancements
-
Apply focus to examples defined with
fit
(equivalent ofit "description", focus: true
) (Michael de Silva)
Bug fix
-
Ensure methods defined by
let
take precedence over others when there is a name collision (e.g. from an included module). (Jon Rowe, Andy Lindeman and Myron Marston)
2.14.0.rc1 / 2013-05-27
Enhancements
-
Improved Windows detection inside Git Bash, for better
--color
handling. -
Add profiling of the slowest example groups to
--profile
option. The output is sorted by the slowest average example groups. -
Don't show slow examples if there's a failure and both
--fail-fast
and--profile
options are used (Paweł Gościcki). -
Rather than always adding
spec
to the load path, add the configured--default-path
to the load path (which defaults tospec
). This better supports folks who choose to put their specs in a different directory (John Feminella). -
Add some logic to test time duration precision. Make it a function of time, dropping precision as the time increases. (Aaron Kromer)
-
Add new
backtrace_inclusion_patterns
config option. Backtrace lines that match one of these patterns will always be included in the backtrace, even if they match an exclusion pattern, too (Sam Phippen). -
Support ERB trim mode using the
-
when parsing.rspec
as ERB (Gabor Garami). -
Give a better error message when let and subject are called without a block. (Sam Phippen).
-
List the precedence of
.rspec-local
in the configuration documentation (Sam Phippen) -
Support
{a,b}
shell expansion syntax in--pattern
option (Konstantin Haase). -
Add cucumber documentation for –require command line option (Bradley Schaefer)
-
Expose configuration options via config:
-
config.libs
returns the libs configured to be added onto the load path -
full_backtrace?
returns the state of the backtrace cleaner -
debug?
returns true when the debugger is loaded -
line_numbers
returns the line numbers we are filtering by (if any) -
full_description
returns the RegExp used to filter descriptions (Jon Rowe) -
Add setters for RSpec.world and RSpec.configuration (Alex Soulim)
-
Configure ruby's warning behaviour with
--warnings
(Jon Rowe) -
Fix an obscure issue on old versions of
1.8.7
whereTime.dup
wouldn't allow access toTime.now
(Jon Rowe) -
Make
shared_examples_for
context aware, so that keys may be safely reused in multiple contexts without colliding. (Jon Rowe) -
Add a configurable
deprecation_stream
(Jon Rowe) -
Publish deprecations through a formatter (David Chelimsky)
Bug fixes
-
Make JSON formatter behave the same when it comes to
--profile
as the text formatter (Paweł Gościcki). -
Fix named subjects so that if an inner group defines a method that overrides the named method,
subject
still retains the originally declared value (Myron Marston). -
Fix random ordering so that it does not cause
rand
in examples in nested sibling contexts to return the same value (Max Shytikov). -
Use the new
backtrace_inclusion_patterns
config option to ensure that folks who develop code in a directory matching one of the default exclusion patterns (e.g.gems
) still get the normal backtrace filtering (Sam Phippen). -
Fix ordering of
before
hooks so thatbefore
hooks declared inRSpec.configure
run beforebefore
hooks declared in a shared context (Michi Huber and Tejas Dinkar). -
Fix
Example#full_description
so that it gets filled in by the last matcher description (asExample#description
already did) when no doc string has been provided (David Chelimsky). -
Fix the memoized methods (
let
andsubject
) leakingdefine_method
as apublic
method. (Thomas Holmes and Jon Rowe) (#873) -
Fix warnings coming from the test suite. (Pete Higgins)
Deprecations
-
Deprecate
Configuration#backtrace_clean_patterns
in favor ofConfiguration#backtrace_exclusion_patterns
for greater consistency and symmetry with newbacktrace_inclusion_patterns
config option (Sam Phippen). -
Deprecate
Configuration#requires=
in favor of using ruby'srequire
. Requires specified by the command line can still be accessed by theConfiguration#require
reader. (Bradley Schaefer) -
Deprecate calling
SharedExampleGroups
defined across sibling contexts (Jon Rowe)
2.13.1 / 2013-03-12
Bug fixes
-
Use hook classes as proxies rather than extending hook blocks to support lambdas for before/after/around hooks. (David Chelimsky)
-
Fix regression in 2.13.0 that caused confusing behavior when overriding a named subject with an unnamed subject in an inner group and then referencing the outer group subject's name. The fix for this required us to disallow using
super
in a named subject (which is confusing, anyway – named subjects create 2 methods, so which method on the parent example group are yousuper
ing to?) butsuper
in an unnamed subject continues to work (Myron Marston). -
Do not allow a referenced
let
orsubject
inbefore(:all)
to cause otherlet
declarations to leak across examples (Myron Marston). -
Work around odd ruby 1.9 bug with
String#match
that was triggered by passing it a regex from alet
declaration. For more info, see bugs.ruby-lang.org/issues/8059 (Aaron Kromer). -
Add missing
require 'set'
tobase_text_formatter.rb
(Tom Anderson).
Deprecations
-
Deprecate accessing
let
orsubject
declarations inbefore(:all)
. These were not intended to be called in abefore(:all)
hook, as they exist to define state that is reset between each example, whilebefore(:all)
exists to define state that is shared across examples in an example group (Myron Marston).
2.13.0 / 2013-02-23
Enhancements
-
Allow
--profile
option to take a count argument that determines the number of slow examples to dump (Greggory Rothmeier). -
Add
subject!
that is the analog tolet!
. It defines an explicit subject and sets abefore
hook that will invoke the subject (Zubin Henner). -
Fix
let
andsubject
declaration so thatsuper
andreturn
can be used in them, just like in a normal method. (Myron Marston) -
Allow output colors to be configured individually. (Charlie Maffitt)
-
Always dump slow examples when
--profile
option is given, even when an example failed (Myron Marston).
Bug fixes
-
Don't blow up when dumping error output for instances of anonymous error classes (Myron Marston).
-
Fix default backtrace filters so lines from projects containing “gems” in the name are not filtered, but lines from installed gems still are (Myron Marston).
-
Fix autotest command so that is uses double quotes rather than single quotes for windows compatibility (Jonas Tingeborn).
-
Fix
its
so that uses ofsubject
in abefore
orlet
declaration in the parent group continue to reference the parent group's subject. (Olek Janiszewski)
2.12.2 / 2012-12-13
Bug fixes
-
Fix
RSpec::Core::RakeTask
so that it is compatible with rake 0.8.7 on ruby 1.8.7. We had accidentally broke it in the 2.12 release (Myron Marston). -
Fix
RSpec::Core::RakeTask
so it is tolerant of theRspec
constant for backwards compatibility (Patrick Van Stee)
2.12.1 / 2012-12-01
Bug fixes
-
Specs are run even if another at_exit hook calls
exit
. This allows Test::Unit and RSpec to run together. (Suraj N. Kurapati) -
Fix full doc string concatenation so that it handles the case of a method string (e.g. “#foo”) being nested under a context string (e.g. “when it is tuesday”), so that we get “when it is tuesday #foo” rather than “when it is tuesday#foo”. (Myron Marston)
-
Restore public API I unintentionally broke in 2.12.0:
RSpec::Core::Formatters::BaseFormatter#format_backtrce(backtrace, example)
(Myron Marston).
2.12.0 / 2012-11-12
Enhancements
-
Add support for custom ordering strategies for groups and examples. (Myron Marston)
-
JSON Formatter (Alex Chaffee)
-
Refactor rake task internals (Sam Phippen)
-
Refactor HtmlFormatter (Pete Hodgson)
-
Autotest supports a path to Ruby that contains spaces (dsisnero)
-
Provide a helpful warning when a shared example group is redefined. (Mark Burns).
-
--default_path
can be specified as--default-line
.--line_number
can be specified as--line-number
. Hyphens are more idiomatic command line argument separators (Sam Phippen). -
A more useful error message is shown when an invalid command line option is used (Jordi Polo).
-
Add
format_docstrings { |str| }
config option. It can be used to apply formatting rules to example group and example docstrings. (Alex Tan) -
Add support for an
.rspec-local
options file. This is intended to allow individual developers to set options in a git-ignored file that override the common project options in.rspec
. (Sam Phippen) -
Support for mocha 0.13.0. (Andy Lindeman)
Bug fixes
-
Remove override of
ExampleGroup#ancestors
. This is a core ruby method that RSpec shouldn't override. Instead, defineExampleGroup#parent_groups
. (Myron Marston) -
Limit monkey patching of shared example/context declaration methods (
shared_examples_for
, etc.) to just the objects that need it rather than every object in the system (Myron Marston). -
Fix Metadata#fetch to support computed values (Sam Goldman).
-
Named subject can now be referred to from within subject block in a nested group (tomykaira).
-
Fix
fail_fast
so that it properly exits when an error occurs in abefore(:all) hook
(Bradley Schaefer). -
Make the order spec files are loaded consistent, regardless of the order of the files returned by the OS or the order passed at the command line (Jo Liss and Sam Phippen).
-
Ensure instance variables from
before(:all)
are always exposed fromafter(:all)
, even if an error occurs inbefore(:all)
(Sam Phippen). -
rspec --init
no longer generates an incorrect warning about--configure
being deprecated (Sam Phippen). -
Fix pluralization of
1 seconds
(Odin Dutton) -
Fix ANSICON url (Jarmo Pertman)
-
Use dup of Time so reporting isn't clobbered by examples that modify Time without properly restoring it. (David Chelimsky)
Deprecations
-
share_as
is no longer needed.shared_context
and/orRSpec::SharedContext
provide better mechanisms (Sam Phippen). -
Deprecate
RSpec.configuration
with a block (useRSpec.configure
).
2.11.1 / 2012-07-18
Bug fixes
-
Fix the way we autoload RSpec::Matchers so that custom matchers can be defined before rspec-core has been configured to definitely use rspec-expectations. (Myron Marston)
-
Fix typo in –help message printed for -e option. (Jo Liss)
-
Fix ruby warnings. (Myron Marston)
-
Ignore mock expectation failures when the example has already failed. Mock expectation failures have always been ignored in this situation, but due to my changes in 27059bf1 it was printing a confusing message. (Myron Marston).
2.11.0 / 2012-07-07
Enhancements
-
Support multiple
--example
options. (Daniel Doubrovkine @dblock) -
Named subject e.g.
subject(:article) { Article.new }
-
see blog.davidchelimsky.net/2012/05/13/spec-smell-explicit-use-of-subject/ for background.
-
thanks to Bradley Schaefer for suggesting it and Avdi Grimm for almost suggesting it.
-
-
config.mock_with
andconfig.expect_with
yield custom config object to a block if given-
aids decoupling from rspec-core's configuation
-
-
include_context
andinclude_examples
support a block, which gets eval'd in the current context (vs the nested context generated byit_behaves_like
). -
Add
config.order = 'random'
to thespec_helper.rb
generated byrspec --init
. -
Delay the loading of DRb (Myron Marston).
-
Limit monkey patching of
describe
onto just the objects that need it rather than every object in the system (Myron Marston).
Bug fixes
-
Support alternative path separators. For example, on Windows, you can now do this:
rspec spec\subdir
. (Jarmo Pertman @jarmo) -
When an example raises an error and an after or around hook does as well, print out the hook error. Previously, the error was silenced and the user got no feedback about what happened. (Myron Marston)
-
--require
and-I
are merged among different configuration sources (Andy Lindeman) -
Delegate to mocha methods instead of aliasing them in mocha adapter.
2.10.1 / 2012-05-19
Bug fixes
-
RSpec.reset
properly reinits configuration and world -
Call
to_s
beforesplit
on exception messages that might not always be Strings (slyphon)
2.10.0 / 2012-05-03
Enhancements
-
Add
prepend_before
andappend_after
hooks (preethiramdev)-
intended for extension libs
-
restores rspec-1 behavior
-
-
Reporting of profiled examples (moro)
-
Report the total amount of time taken for the top slowest examples.
-
Report what percentage the slowest examples took from the total runtime.
-
Bug fixes
-
Properly parse
SPEC_OPTS
options. -
example.description
returns the location of the example if there is no explicit description or matcher-generated description. -
RDoc fixes (Grzegorz Świrski)
-
Do not modify example ancestry when dumping errors (Michael Grosser)
2.9.0 / 2012-03-17
Enhancements
-
Support for “X minutes X seconds” spec run duration in formatter. (uzzz)
-
Strip whitespace from group and example names in doc formatter.
-
Removed spork-0.9 shim. If you're using spork-0.8.x, you'll need to upgrade to 0.9.0.
Bug fixes
-
Restore
--full_backtrace
option -
Ensure that values passed to
config.filter_run
are respected when running over DRb (using spork). -
Ensure shared example groups are reset after a run (as example groups are).
-
Remove
rescue false
from calls to filters represented as Procs -
Ensure
described_class
gets the closest constant (pyromaniac) -
In “autorun”, don't run the specs in the
at_exit
hook if there was an exception (most likely due to a SyntaxError). (sunaku) -
Don't extend groups with modules already used to extend ancestor groups.
-
its
correctly memoizes nil or false values (Yamada Masaki)
2.8.0 / 2012-01-04
Bug fixes
-
For metadata filtering, restore passing the entire array to the proc, rather than each item in the array (weidenfreak)
-
Ensure each spec file is loaded only once
-
Fixes a bug that caused all the examples in a file to be run when referenced twice with line numbers in a command, e.g.
-
rspec path/to/file:37 path/to/file:42
-
-
2.8.0.rc2 / 2011-12-19
Enhancments
-
new
--init
command (Peter Schröder)-
generates
spec/spec_helper.rb
-
deletes obsolete files (on confirmation)
-
merged with and deprecates
--configure
command, which generated.rspec
-
-
use
require_relative
when available (Ian Leitch) -
include_context
andinclude_examples
accept params (Calvin Bascom) -
print the time for every example in the html formatter (Richie Vos)
-
several tasty refactoring niblets (Sasha)
-
`it “does something”, :x => [:foo,'bar',/baz/] (Ivan Neverov)
-
supports matching n command line tag values with an example or group
-
2.8.0.rc1 / 2011-11-06
Enhancements
-
--order
(Justin Ko)-
run examples in random order:
--order rand
-
specify the seed:
--order rand:123
-
-
--seed SEED
-
equivalent of
--order rand:SEED
-
-
SharedContext supports
let
(David Chelimsky) -
Filter improvements (David Chelimsky)
-
override opposing tags from the command line
-
override RSpec.configure tags from the command line
-
--line_number 37
overrides all other filters -
path/to/file.rb:37
overrides all other filters -
refactor: consolidate filter management in a FilterManger object
-
-
Eliminate Ruby warnings (Matijs van Zuijlen)
-
Make reporter.report an API (David Chelimsky)
-
supports extension tools like interative_rspec
-
Changes
-
change
config.color_enabled
(getter/setter/predicate) tocolor
to align with--[no]-color
CLI option.-
color_enabled
is still supported for now, but will likley be deprecated in a 2.x release so we can remove it in 3.0.
-
Bug fixes
-
Make sure the
bar
in--tag foo:bar
makes it to DRb (Aaron Gibralter) -
Fix bug where full descriptions of groups nested 3 deep were repeated.
-
Restore report of time to run to start after files are loaded.
-
fixes bug where run times were cumalitive in spork
-
fixes compatibility with time-series metrics
-
fixes bug where run times were cumalitive in spork
-
fixes compatibility with time-series metrics
-
-
Don't error out when
config.mock_with
orexpect_with
is re-specifying the current config (Myron Marston) -
Deprecations
-
:alias option on
configuration.add_setting
. Use:alias_with
on the original setting declaration instead.
-
2.7.1 / 2011-10-20
Bug fixes
-
tell autotest the correct place to find the rspec executable
2.7.0 / 2011-10-16
NOTE: RSpec's release policy dictates that there should not be any backward incompatible changes in minor releases, but we're making an exception to release a change to how RSpec interacts with other command line tools.
As of 2.7.0, you must explicity require
"rspec/autorun"
unless you use the rspec
command (which already does this for you).
Enhancements
-
Add
example.exception
(David Chelimsky) -
--default_path
command line option (Justin Ko) -
support multiple
--line_number
options (David J. Hamilton)-
also supports
path/to/file.rb:5:9
(runs examples on lines 5 and 9)
-
-
Allow classes/modules to be used as shared example group identifiers (Arthur Gunn)
-
Friendly error message when shared context cannot be found (Sławosz Sławiński)
-
Clear formatters when resetting config (John Bintz)
-
Add
xspecify
and xexample as temp-pending methods (David Chelimsky) -
Add
--no-drb
option (Iain Hecker) -
Provide more accurate run time by registering start time before code is loaded (David Chelimsky)
-
reverted in 2.8.0
-
-
Rake task default pattern finds specs in symlinked dirs (Kelly Felkins)
-
Rake task no longer does anything to invoke bundler since Bundler already handles it for us. Thanks to Andre Arko for the tip.
-
Add
--failure-exit-code
option (Chris Griego)
Bug fixes
-
Include
Rake::DSL
to remove deprecation warnings in Rake > 0.8.7 (Pivotal Casebook) -
Only eval
let
block once even if it returnsnil
(Adam Meehan) -
Fix
--pattern
option (wasn't being recognized) (David Chelimsky) -
Only implicitly
require "rspec/autorun"
with therspec
command (David Chelimsky) -
Ensure that rspec's
at_exit
defines the exit code (Daniel Doubrovkine) -
Show the correct snippet in the HTML and TextMate formatters (Brian Faherty)
2.6.4 / 2011-06-06
NOTE: RSpec's release policy dictates that there should not be new functionality in patch releases, but this minor enhancement slipped in by accident. As it doesn't add a new API, we decided to leave it in rather than roll back this release.
Enhancements
-
Add summary of commands to run individual failed examples.
Bug fixes
-
Support exclusion filters in DRb. (Yann Lugrin)
-
Fix –example escaping when run over DRb. (Elliot Winkler)
-
Use standard ANSI codes for color formatting so colors work in a wider set of color schemes.
2.6.3 / 2011-05-24
Bug fixes
-
Explicitly convert exit code to integer, avoiding TypeError when return value of run is IO object proxied by
DRb::DRbObject
(Julian Scheid) -
Clarify behavior of
--example
command line option -
Build using a rubygems-1.6.2 to avoid downstream yaml parsing error
2.6.2 / 2011-05-21
Bug fixes
-
Warn rather than raise when HOME env var is not defined
-
Properly merge command-line exclusions with default :if and :unless (joshcooper)
2.6.1 / 2011-05-19
Bug fixes
-
Don't extend nil when filters are nil
-
require 'rspec/autorun'
when running rcov.
2.6.0 / 2011-05-12
Enhancements
-
shared_context
(Damian Nurzynski)-
extend groups matching specific metadata with:
-
method definitions
-
subject declarations
-
let/let! declarations
-
etc (anything you can do in a group)
-
-
-
its([:key])
works for any subject with #[]. (Peter Jaros) -
treat_symbols_as_metadata_keys_with_true_values
(Myron Marston) -
Print a deprecation warning when you configure RSpec after defining an example. All configuration should happen before any examples are defined. (Myron Marston)
-
Pass the exit status of a DRb run to the invoking process. This causes specs run via DRb to not just return true or false. (Ilkka Laukkanen)
-
Refactoring of
ConfigurationOptions#parse_options
(Rodrigo Rosenfeld Rosas) -
Report excluded filters in runner output (tip from andyl)
-
Clean up messages for filters/tags.
-
Restore –pattern/-P command line option from rspec-1
-
Support false as well as true in config.full_backtrace= (Andreas Tolf Tolfsen)
Bug fixes
-
Don't stumble over an exception without a message (Hans Hasselberg)
-
Remove non-ascii characters from comments that were choking rcov (Geoffrey Byers)
-
Fixed backtrace so it doesn't include lines from before the autorun at_exit hook (Myron Marston)
-
Include RSpec::Matchers when first example group is defined, rather than just before running the examples. This works around an obscure bug in ruby 1.9 that can cause infinite recursion. (Myron Marston)
-
Don't send
example_group_[started|finished]
to formatters for empty groups. -
Get specs passing on jruby (Sidu Ponnappa)
-
Fix bug where mixing nested groups and outer-level examples gave unpredictable :line_number behavior (Artur Małecki)
-
Regexp.escape the argument to –example (tip from Elliot Winkler)
-
Correctly pass/fail pending block with message expectations
-
CommandLine returns exit status (0/1) instead of true/false
-
Create path to formatter output file if it doesn't exist (marekj).
2.5.1 / 2011-02-06
NOTE: this release breaks compatibility with rspec/autotest/bundler integration, but does so in order to greatly simplify it.
With this release, if you want the generated autotest command to include 'bundle exec', require Autotest's bundler plugin in a .autotest file in the project's root directory or in your home directory:
require "autotest/bundler"
Now you can just type 'autotest' on the commmand line and it will work as you expect.
If you don't want 'bundle exec', there is nothing you have to do.
2.5.0 / 2011-02-05
Enhancements
-
Autotest::Rspec2 parses command line args passed to autotest after '–'
-
–skip-bundler option for autotest command
-
Autotest regexp fixes (Jon Rowe)
-
Add filters to html and textmate formatters (Daniel Quimper)
-
Explicit passing of block (need for JRuby 1.6) (John Firebaugh)
Bug fixes
-
fix dom IDs in HTML formatter (Brian Faherty)
-
fix bug with –drb + formatters when not running in drb
-
include –tag options in drb args (monocle)
-
fix regression so now SPEC_OPTS take precedence over CLI options again (Roman Chernyatchik)
-
only call its(:attribute) once (failing example from Brian Dunn)
-
fix bizarre bug where rspec would hang after String.alias :to_int :to_i (Damian Nurzynski)
Deprecations
-
implicit inclusion of 'bundle exec' when Gemfile present (use autotest's bundler plugin instead)
2.4.0 / 2011-01-02
Enhancements
-
start the debugger on -d so the stack trace is visible when it stops (Clifford Heath)
-
apply hook filtering to examples as well as groups (Myron Marston)
-
support multiple formatters, each with their own output
-
show exception classes in failure messages unless they come from RSpec matchers or message expectations
-
before(:all) { pending } sets all examples to pending
Bug fixes
-
fix bug due to change in behavior of reject in Ruby 1.9.3-dev (Shota Fukumori)
-
fix bug when running in jruby: be explicit about passing block to super (John Firebaugh)
-
rake task doesn't choke on paths with quotes (Janmejay Singh)
-
restore –options option from rspec-1
-
require 'ostruct' to fix bug with its() (Kim Burgestrand)
-
–configure option generates .rspec file instead of autotest/discover.rb
2.3.1 / 2010-12-16
Bug fixes
-
send debugger warning message to $stdout if RSpec.configuration.error_stream has not been defined yet.
-
HTML Formatter finally properly displays nested groups (Jarmo Pertman)
-
eliminate some warnings when running RSpec's own suite (Jarmo Pertman)
2.3.0 / 2010-12-12
Enhancements
-
tell autotest to use “rspec2” if it sees a .rspec file in the project's root directory
-
replaces the need for ./autotest/discover.rb, which will not work with all versions of ZenTest and/or autotest
-
-
config.expect_with
-
:rspec # => rspec/expectations
-
:stdlib # => test/unit/assertions
-
:rspec, :stdlib # => both
-
Bug fixes
-
fix dev Gemfile to work on non-mac-os machines (Lake Denman)
-
ensure explicit subject is only eval'd once (Laszlo Bacsi)
2.2.1 / 2010-11-28
Bug fixes * alias_method instead of override Kernel#method_missing (John Wilger) * changed –autotest to –tty in generated command (MIKAMI Yoshiyuki) * revert change to debugger (had introduced conflict with Rails) * also restored –debugger/-debug option
2.2.0 / 2010-11-28
Deprecations/changes
-
–debug/-d on command line is deprecated and now has no effect
-
win32console is now ignored; Windows users must use ANSICON for color support (Bosko Ivanisevic)
Enhancements
-
When developing locally rspec-core now works with the rspec-dev setup or your local gems
-
Raise exception with helpful message when rspec-1 is loaded alongside rspec-2 (Justin Ko)
-
debugger statements just work as long as ruby-debug is installed
-
otherwise you get warned, but not fired
-
Expose example.metadata in around hooks
-
Performance improvments (much faster now)
Bug fixes
-
Make sure –fail-fast makes it across drb
-
Pass -Ilib:spec to rcov
2.1.0 / 2010-11-07
Enhancments
-
Add skip_bundler option to rake task to tell rake task to ignore the presence of a Gemfile (jfelchner)
-
Add gemfile option to rake task to tell rake task what Gemfile to look for (defaults to 'Gemfile')
-
Allow passing caller trace into Metadata to support extensions (Glenn Vanderburg)
-
Add deprecation warning for Spec::Runner.configure to aid upgrade from RSpec-1
-
Add deprecated Spec::Rake::SpecTask to aid upgrade from RSpec-1
-
Add 'autospec' command with helpful message to aid upgrade from RSpec-1
-
Add support for filtering with tags on CLI (Lailson Bandeira)
-
Add a helpful message about RUBYOPT when require fails in bin/rspec (slyphon)
-
Add “-Ilib” to the default rcov options (Tianyi Cui)
-
Make the expectation framework configurable (default rspec, of course) (Justin Ko)
-
Add 'pending' to be conditional (Myron Marston)
-
Add explicit support for :if and :unless as metadata keys for conditional run of examples (Myron Marston)
-
Add –fail-fast command line option (Jeff Kreeftmeijer)
Bug fixes
-
Eliminate stack overflow with “subject { self }”
-
Require 'rspec/core' in the Raketask (ensures it required when running rcov)
2.0.1 / 2010-10-18
Bug fixes
-
Restore color when using spork + autotest
-
Pending examples without docstrings render the correct message (Josep M. Bach)
-
Fixed bug where a failure in a spec file ending in anything but _spec.rb would fail in a confusing way.
-
Support backtrace lines from erb templates in html formatter (Alex Crichton)
2.0.0 / 2010-10-10
RSpec-1 compatibility
-
Rake task uses ENV as file list if present
Bug fixes
-
Bug Fix: optparse –out foo.txt (Leonardo Bessa)
-
Suppress color codes for non-tty output (except autotest)
2.0.0.rc / 2010-10-05
Enhancements
-
implicitly require unknown formatters so you don't have to require the file explicitly on the commmand line (Michael Grosser)
-
add –out/-o option to assign output target
-
added fail_fast configuration option to abort on first failure
-
support a Hash subject (its() { should == value }) (Josep M. Bach)
Bug fixes
-
Explicitly require rspec version to fix broken rdoc task (Hans de Graaff)
-
Ignore backtrace lines that come from other languages, like Java or Javascript (Charles Lowell)
-
Rake task now does what is expected when setting (or not setting) fail_on_error and verbose
-
Fix bug in which before/after(:all) hooks were running on excluded nested groups (Myron Marston)
-
Fix before(:all) error handling so that it fails examples in nested groups, too (Myron Marston)
2.0.0.beta.22 / 2010-09-12
Enhancements
-
removed at_exit hook
-
CTRL-C stops the run (almost) immediately
-
first it cleans things up by running the appropriate after(:all) and after(:suite) hooks
-
then it reports on any examples that have already run
-
-
cleaned up rake task
-
generate correct task under variety of conditions
-
options are more consistent
-
deprecated redundant options
-
-
run 'bundle exec autotest' when Gemfile is present
-
support ERB in .rspec options files (Justin Ko)
-
depend on bundler for development tasks (Myron Marston)
-
add example_group_finished to formatters and reporter (Roman Chernyatchik)
Bug fixes
-
support paths with spaces when using autotest (Andreas Neuhaus)
-
fix module_exec with ruby 1.8.6 (Myron Marston)
-
remove context method from top-level
-
was conflicting with irb, for example
-
-
errors in before(:all) are now reported correctly (Chad Humphries)
Removals
-
removed -o –options-file command line option
-
use ./.rspec and ~/.rspec
-


Learn to code and help nonprofits
write -> code -> explain? + random musings
| October 2015 | Credible Email |
| September 2015 | NextCapital ToDo |
| June 2015 | Hobbyist |
| May 2015 | ePlanner |
| March 2015 | SQL Cheatsheet |
| February 2015 | Pair Programming Website |
A former student of international affairs and the political economy turned web developer on a journey of self-discovery and growth.
You wanna know more?!?! >>Learn to code and help nonprofits
Learn web development for free
A social blogging site where people can publish their ideas and perspectives. Leaders. Artists. Thinkers. And ordinary citizens who have a story to tell. Posts range from scrutinies of world affairs to deeply personal essays. Medium sifts the best of these for you and delivers them directly onto your home page.


--- layout: page title: about description: "The quickest way to know more about me" header-img: "img/about-bg.jpg" alt-title: "Colle Owino" ---
Well, I am a self taught software engineer although I prefer the term software developer. I started coding straight after high school and never looked back
I believe that the true value in technology lies in helping people solve problems on their own terms, in a way that seems most natural to them. That means that the software we create must always be user friendly within the context in which it is to be deployed. To a great extent its not really about which programming languages you use but rather about how much value your end users derive from its usage.
What am I after? Well... I seek challenges, tell me something is difficult and I will be interested, Tell me its impossible and now am ecstatic.  Although I concede that there are some problems that just can't be solved and am OK with that :-)


Selena API Documentation¶
Selena module¶
The main module for the selena emulation control.
-
Selena.
S_EXIT
(message=None)¶ Exits the program return 1 as error status and printing a message.
Parameters: message – The message to print to standard output before exiting Selena
-
class
Selena.
Selena
(selena_config, **kwargs)¶ Bases:
object
This is the main Selena Class
-
doPoolFirstPass
(pScenario)¶ Make a first pass of the pool to extract VMs with exact name matches (reuse VMs from previous scenario runs) :param pScenario: The name of the scenario
-
generateVmConfig
(pNode, pScenarioName)¶ Create a VM configuration based on the details of a scenario Node. This configuration is ready to be consumed by XAPI :param pNode: The node object of the scenario :param pScenarioName: The scenario object :return: The new VM configuration in the form of a dictionary
-
getVmFromPool_byName
(pVmName, pType)¶ Try to Retrieve a VM from the VMs pool with the specified label-name (left from previous emulation runs) All VMs in pool have the scenario’s name in their description-name meta-info (distinct from the name-label) :param pVmName: The name of the Vm that we wish to retrieve :param pType: The type of the VM which determines the sub-pool in which Selena will search for a matching VM :return: The index in the pools and the VM object if a matching VM is found, (None, None) otherwise
-
get_class
(pathToClass)¶ A recursive class tracker.
Parameters: kls – A string that contains a path to a class in dotted format Returns: The Class object
-
haltVM
(pRef, pForce=False)¶ Stops the specified VM :param pRef: the OpaqueRef for the VM to be shut down :param pForce: Force shutdown, do not wait for the VM to exit gracefully (boolean type) :return: True if the VM is shut-down successfully, False otherwise
-
initXenNetPool
(pScenarioName)¶ Initialize the pool with the Xen server networks. It obtains a list of the networks that are currently installed on the Xen server and based on their name-description meta-info it checks if they belong to the specified scenario and allocates them to the networks pool. Networks added in the pool are reused across emulations. :param pScenario: The name of the scenario for which we are initializing the pool :return:
-
initXenVmPool
(pScenarioName, pDoShutdown=True)¶ Initializes the pool with the VMs. It obtains a list of the VMs that are currently installed on the Xen server and based on their name-description meta-info it checks if they belong to the specified scenario and also infers their template type and allocates them to the correct sub-pool. VMs added in the pool are reused across emulations. :param pScenarioName: The name of the scenario for which we are initializing the pool :param pDoShutdown: If True it will shut down each VM before adding it to the pool.
-
loadScenario
(pScenarioClassName)¶ Creates an instance of the specified scenario and initializes it by calling instance’s method initScenario()
Parameters: pScenarioClassName – The name (or path) of the scenario module and/or class. Returns: The new instance of the scenario
-
reuseVM
(pNode, pVmRef, pScenarioName)¶ Reuse a VM from the scenario’s VM pool. Update the node meta-info with the VM’s details. :param pNode: The scenario’s node object that we wish to update with the matching VM’s details :param pVmRef: The OpaqueRef of the VM to be reused :param pScenarioName: The name of the scenario
-
selenaDo_installScenario
(pScenarioName)¶ - This method instructs Selena to create the VMs and virtual networks
- necessary to execute the specified scenario.
Parameters: pScenarioName – The module and/or class name of the scenario description Returns: True if all VMs and network are created successfully, False otherwise
-
selenaDo_killScenario
(pScenarioName)¶ This method instructs Selena to halt all the VMs which are related to the specified scenario. It is assumed that the scenario has been previously installed.
Parameters: pScenarioName – The module and/or class name of the scenario description Returns: True if all VMs and network are stopped successfully, False otherwise
-
selenaDo_startScenario
(pScenarioName)¶ This method instructs Selena to start the VMs of the specified scenario. It is assumed that the scenario has been previously installed.
Parameters: pScenarioName – The module and/or class name of the scenario description Returns: True if all VMs and network are created successfully, False otherwise
-
selenaDo_uninstallScenario
(pScenarioName)¶ - This method instructs Selena to halt and destroy the VMs and virtual networks
- which are related to the specified scenario.
Parameters: pScenarioName – The module and/or class name of the scenario description Returns: True if all VMs and network are destroyed successfully, False otherwise
-
stopAllRunningVMs
(pForce=False)¶ Stops all the VMs that are currently in running state on the Xen server :param pForce: Force shutdown, do not wait for VMs to exit gracefully (boolean type)
-
-
class
SelenaLogger.
SelenaLogger
¶ Bases:
logging.Logger
,object
This is the main Selena logger Class
-
setAllLevels
(pLevel)¶ Sets the logging level for the logger itself and for all its handlers.
Parameters: pLevel – The request logging level
-
-
class
Scenario.
Scenario
¶ Bases:
object
classdocs
-
class
XcpManager.
XcpManager
(pUrl='localhost', pUserName='root', pPasswd='root')¶ Bases:
object
classdocs
Singleton module¶
This is a helper module, used to implement the Singleton pattern (the python way).
-
class
Singleton.
Singleton
(name, bases, dict_)¶ Singleton class
Class necessary to implement the Singleton pattern. Taken from StackOverflow
Intended to be used as a __metaclass_ param, as shown for the class below.


Home
(current)
About
About
Background
Coalition and Partners
Our Principles
Join the Movement
Meet the Staff
Media
Press Releases1
Press Releases2
Press Releases3
Press Releases4
Research
Research
Polls
Gallery
Give Back
Donate
Nominate an Individual
Volunteer
Contact Us
Know Your Rights
#Nominations
Vote for your favorite NOW!
Select the nomination you are about to make:
Youth of the Month
Advocate of the Month
Select from the following candidates:
Candidate1
Candidate2
Candidate3
Candidate4
Candidate5
Or suggest your own by typing the first and last name of the person you would like to nominate:
Say something about your nominee! (not required)
Submit Nomination
Education
Employment
Wellness
Justice Legal
Housing
Emergency


annotater
came about after teaching workshops or helping
peers and realizing that many issues relate to package installation
failures and dependency issues for packages that were not even used in a
problematic script. Scripts get passed around, code is copied and
pasted, and we might not know what certain packages are for.
Additionally, it is often useful to specify a package’s source and
version within a script, for reproducibility purposes and to keep a
record of where any the packages can be obtained.
This package works around a suite of functions that match package
load calls (i.e. library
and require
) in a
character string with one line per element, and replace them with
annotated versions. As of version 0.2.0, loading packages with
pacman::p_load
is also supported.
First, match_pkg_names
produces a tibble of package load
calls and package names.
pkgs_string <- c("library(boot)\nrequire(Matrix)")
match_pkg_names(pkgs_string)
#> # A tibble: 2 × 3
#> call package_name pkgname_clean
#> <chr> <chr> <chr>
#> 1 library(boot) boot boot
#> 2 require(Matrix) Matrix Matrix
The values in this tabular output are then passed to
utils::packageDescription
, which parses and returns the
‘DESCRIPTION’ file of an installed package. Fields of interest from
these descriptions are then used to build the annotations.
The ‘Title’ field from a package’s description makes for a good
summary of what it does, so annotate_pkg_calls
uses it to
build annotations. These titles are inserted after each package load
call, separated by a commenting symbol.
pkgs_string <- c("library(boot)\nrequire(tools)")
annotate_pkg_calls(pkgs_string)
#> [1] "library(boot) # Bootstrap Functions (Originally by Angelo Canty for S)\nrequire(tools) # Tools for Package Development"
A similar approach is used by annotate_repo_source
to
paste the repository source and version number.
pkgs_string <- c("library(boot)\nrequire(lattice)")
annotate_repo_source(pkgs_string)
#> [1] "library(boot) # CRAN v1.3-28\nrequire(lattice) # CRAN v0.20-45"
Titles, repositories and version numbers can be annotated together in
the output from annotate_repostitle
.
pkgs_string <- c("library(boot)\nrequire(lattice)")
annotate_repostitle(pkgs_string)
#> [1] "boot # Bootstrap Functions (Originally by Angelo Canty for S), CRAN v1.3-28\nlattice # Trellis Graphics for R, CRAN v0.20-45"
To annotate which functions are being called from each loaded
package, use annotate_fun_calls
.
testcode <- c('library(purrr)
x <- list("a", 1, c("bo","bi","bu"))
pluck(x, 1)
map(x, pluck, 2)')
annotate_fun_calls(testcode)
#> [1] "library(purrr) # pluck map \nx <- list(\"a\", 1, c(\"bo\",\"bi\",\"bu\"))\npluck(x, 1)\nmap(x, pluck, 2)"
tidyverse
The tidyverse
package is a meta-package with few
exported functions of its own, so the annotation tools provided here
(annotate_fun_calls
) will not match the functions from the
various individual packages (such as dplyr
or
readr
) that get attached when loading
tidyverse
. This is by design, so consider loading
individual packages if annotations for function calls are desired.
These main package functions can be called through their respective RStudio addins, written to work on the active .R or .Rmd file open in the Source pane.
Describes the packages being loaded by calling
annotate_pkg_calls
.
Adds the source and version by calling
annotate_repo_source
. This addin aligns the commenting
symbols vertically for aesthetic purposes.


@Immutable
annotation.
This violates the contract of the @Immutable
annotation.
Example:
import javax.annotation.concurrent.Immutable;
@Immutable
class Foo {
String bar = "foo";
}
Supported @GuardedBy
annotations are:
net.jcip.annotations.GuardedBy
javax.annotation.concurrent.GuardedBy
org.apache.http.annotation.GuardedBy
com.android.annotations.concurrency.GuardedBy
androidx.annotation.GuardedBy
com.google.errorprone.annotations.concurrent.GuardedBy